CSS, short for Cascading Style Sheets, is a language used to control the presentation (including colors, layout, and fonts) of HTML and XHTML documents.

learn more… | top users | synonyms (4)

2
votes
1answer
1k views

CSS templates for standard html elements?

I'm not looking for html page templates... but rather basic element templates. Is anyone aware of a site that carries this type of template? I want to create my own layouts and such, but I would love ...
5
votes
1answer
1k views

Majority of mobile devices support media queries for screen width?

Where I can find statistics on what % of mobile devices browsing the web support media queries for screen widths? I want to know whether for mobile optimization I can assume the majority of users' ...
1
vote
1answer
633 views

HTML 5 - Backward Compatibility with new Tags and CSS?

In case I will use any of the new HTML5 Tags like: <article> or <section> ... with a doctype of <!DOCTYPE html> 1.) Can I directly assign a style to this element like: ...
2
votes
0answers
153 views

Any websites out there that showcase beautiful and pure css? (no images, flash, etc) [closed]

Something like the css zen garden but without the images used, just showing off what css can do on it's own? Or in general a site that gives an overview of pure css techniques to beautify web pages.
5
votes
1answer
1k views

SVG in CSS backgrounds

Edit: How can I detect in php if the client browser is capable of displaying SVG as CSS background ? I renamed my stylesheet from .css to .css.php. So I can include at the beginning: <?php ...
0
votes
1answer
154 views

Create sprites automatically

I get the folder with the following structure from my designer*: file.css images/ Is there any tool which can automatically create sprite from images folder and replace all images ...
16
votes
1answer
5k views

How Google reacts on display:none for CSS media query?

According to Google Webmaster guideline "Hidden text" is not acceptable. Which means I do have a dov containing some good amount of title or paragraph with link or images if I make it display:none in ...
2
votes
1answer
133 views

Why don't people embed style and scripts in the HTML?

I know this sounds like a silly question, but hear me out. These days, there are a lot of 'media aggregator' tools that will take your globs of javascript (laden with coffee and underscores and ...
1
vote
2answers
613 views

Putting Together HTML, CSS, and JavaScript

Hopefully this question isn't too broad… I am a competent iOS programmer and have some experience with Java (command-line tools). Over the last year or two I've dabbled into HTML, CSS, and ...
1
vote
2answers
341 views

changing <b> tag style to font-weight normal

I am highlighting key words on my web pages using the <b> tag. I have set all <b> tags to font-weight: normal in my global stylesheet and was wondering if this would be considered a 'black ...
1
vote
3answers
194 views

Adding text shadow to your whole website

I want to add shadow to all the text into a website. The text is in different elements of the website. Now I was thinking of 2 things. 1) add a class to all the containers with text, and just give ...
2
votes
2answers
616 views

Buttons in pure CSS3 or use image sprite

I want to know if it would be better to make an image for the buttons that I use, or can I get away with pure CSS. Ill give you the code. html: <ul id="buttons-dev"> <li ...
2
votes
1answer
116 views

What is a CSS form? How does one embed an AdSense ad into a CSS form?

One of the Google AdSense optimization tips says to, "Use a CSS form to embed the ads unit for more seamless design." What does this mean? How does one implement a CSS form?
1
vote
1answer
273 views

Is liquid layout good or creating multiple css file for universal accessibility of web pages?

Is liquid layout (everything in % and font-size in 'em') good or creating multiple css file for different resolutions or browsers with help of Javascript good? I am a aspiring web designer, and want ...
2
votes
1answer
550 views

Background image strategies for a curved background

How would you handle a background image for a web page with a curve like the one below? Normally, I take a thin image and repeat it along the x-axis, but the curve negates that strategy as one side is ...
1
vote
2answers
331 views

Why can't Internet Explorer render this page correctly?

I've been pulling my hair out but can't figure out why my page looks like a huge mess in IE9, but Firefox, Chrome, Opera, Safari works great. My website is here: http://173.244.195.179/test-o.html ...
2
votes
2answers
418 views

Curious CSS: “font-family: restore-n8;”

Found some curious CSS in the source for http://contrastrebellion.com/: font-family: restore-n8, restore-1, restore-2, sans-serif; Restore-n8 and the like don't seem to be font names. What does ...
4
votes
3answers
999 views

Most Popular Fonts used in Webpages and their Fallbacks?

This is a two part question, the second question is dependent on the first: What are the most popular fonts used on web pages? (the top half dozen will suffice). Include the proper CSS fallbacks for ...
0
votes
1answer
37 views

if… or conditional comments?

So I'm working on this website for my dad (http://tendonaid.com/) and it works nice in modern browsers, but apparently he's getting comments on how the top navigation doesn't work on Internet Explorer ...
8
votes
3answers
317 views

What font technique is being used here?

While I was attending this event (http://worldtour.fogcreek.com/) I noticed this page had custom fonts for the Address part in the top left corner (i.e "Fog Creek Software 55 Broadway Fl 55....") When ...
1
vote
1answer
400 views

CSS equal height divs with padding

I have been using this technique before to get equal column heights #page-wrap { overflow: hidden;} .page-left, .page-right{float: left; width: 435px; margin-bottom: -5000px; padding-bottom: 5000px; ...
3
votes
2answers
34 views

Stylesheet switches increase loadtime?

I am using stylesheet switcher which uses a number of alternate stylesheets for the media="screen" and switches to those styles when instructed by the user. But in the web page I have to use several ...
1
vote
1answer
124 views

Zen Cart - different banners for each page

I have a zen cart shop with a costumized template and for now there is a slideshow gallery under the header. I need to keep this gallery for the first page only, but on all the other pages there ...
3
votes
2answers
84 views

[pic] Possible to style a text with CSS?

Preparing for a meeting with our designer later today, I was looking through his Photoshop sketches and wonder whether the following one could be expressed in HTML/CSS, without the need to render the ...
8
votes
2answers
10k views

How to mimic <pre> with <div>

I am publishing python code on some website that is CMS. I have a python script that reads any python script and makes a syntax-colored HTML out of it. Then I copy/paste this HTML into the CMS editing ...
10
votes
2answers
311 views

Automated Website Testing/Sanity/Quality

I am thinking about building a tool that starts from the root of a webpage and traverses the entire website gathering a list of resources such as CSS/HTML/Javascript files and then runs CSS/Javascript ...
3
votes
1answer
141 views

JS and CSS caching issue: possibly .htaccess related

I've been using the HTML5 Boilerplate for some web projects for a while now and have noticed the following issue cropping up on some sites. My CSS and JS files, when loaded by the browser, are being ...
2
votes
2answers
101 views

CSS spaces, top element or bottom element? [closed]

Whenever I format a website according to a PSD file, I always wonder if the space should be from the top element or the bottom one. So if I have 2 elements that are seperated by some space, I ...
2
votes
2answers
251 views

Online Code Editor + File Hosting

I've been searching all over the Internet and am having trouble finding the following: An online code editor (with syntax highlighting, line numbers, etc.) that allows you to save the file in the ...
2
votes
6answers
126 views

Any tool for image to CSS?

I have an image (not gradient) color, I tried to identify the color code but not possible. Is there any tool to convert image to css or css color code?
0
votes
1answer
143 views

Comments section being indented by mysterious CSS

I use Disqus comments plugin for Wordpress, and the comments section is indented to the right like a blockquote is. The code appearing in the front end post is: <div id="disqus_thread"> ...
12
votes
4answers
7k views

is 'bookman old style' web safe

Is 'Bookman Old Style' web safe? If not, is there something that looks similar which is web safer?
5
votes
1answer
8k views

Format numbers with css

Is it possible to format numbers using css ? When I have 7000000.00, I would like it displayed as 7 000 000.00 I know I could write a backend (php, perl...) function or a javascript function that ...
0
votes
2answers
83 views

Mac font on website on PC

I like how fonts look on a Mac. Is it possible to render something similar in a website and have it work on all operating systems and browsers? I'm aware of font-face but I can't seem to find a clean ...
2
votes
1answer
314 views

Why my site automatically scroll down?

Every time when I open the site it to scroll down. About 1500 pixels down. The most interesting - I have not changed anything and before this problem was not. MODx Evo 1.0.5 ...
1
vote
3answers
139 views

Liquid Layout out of Proportion

I am using a liquid layout on my website, but when I view in in my browser I find that when I change the browser window size, the images are stretched out of proportion. Can anybody help?
0
votes
3answers
560 views

How can I make my website look better? [closed]

So I have a website currently under development.. let me just first say that the domain name is NOT the name of the website or going to have any relation to it.. http://pandafi.com/ This site is ...
1
vote
1answer
670 views

Custom font not displaying properly

I am trying to install a custom font on my site. The browser will load the font, but the display is not quite right. The character vertical positions/sizes seem to be off a tiny amounts. See examples ...
0
votes
2answers
362 views

Changing default browser font-size affecting 3 divs floated inside a header div

Changing a web browsers default font size from 16px adversely affects the layout of the 3 divs that I have floated within my header div. Considering that the 3 header divs are fixed elements and not ...
1
vote
2answers
2k views

How do get my css style sheet to work the same in IE9 as it does in IE8 and other browsers?

I am developing the following website and just discovered that the styling of the navigation does not work well in IE9 but is great in IE8 and other browsers - how do sort this out?
3
votes
1answer
160 views

Problem with browser caching images

I'm sure many site admins must deal with this sort of problem all the time, but I don't have a really good and simple solution myself. It is what happens when you overwrite an existing image on the ...
4
votes
2answers
1k views

One JS/CSS bundle Vs. One with default and one with custom

On a few of my sites, we use Javascript/CSS bundles to reduce load time. I've always used two bundles for each type (4 in total) so I have JS Bundle 1: Contains scripts that are standard on every ...
1
vote
2answers
938 views

font-weight on Windows

I've the following code: p{ font-family: Helvetica, Arial, sans-serif; font-weight:100;} It works on Mac OSX on Safari and Firefox, but the font-weight don't work on Windows in any browser. Why? ...
4
votes
2answers
899 views

“Effective width” of a css element could reasonably includes what? width, ?margin?, ?padding?

Eric Meyer just tweeted that he got 100% in this quiz: http://net.tutsplus.com/quizzes/nettuts-quiz-1-beginner-css/ So I took the quiz, and at the end they told me that I got one question wrong: ...
1
vote
1answer
1k views

CSS images loading extremely slow

I'm having difficulties with the following website : http://ladaily.com/los-angeles Seems like the rendering time of small images (less than 1KB) is extremely slow (over 2+ seconds). Any idea on ...
3
votes
2answers
2k views

Does multiple CSS files affect load time?

Does using multiple CSS files (default.css, print.css, mobile.css...) affect a website's load time?
2
votes
4answers
582 views

Should I jump straight into HTML 5 and CSS 3 from minimum knowledge of HTML?

I first learned HTML a long time ago, from the Visual Quickstart guide in 1999, HTML 4 for the World Wide Web. Though I have a grasp of fundamental concepts of HTML, my knowledge of CSS is woefully ...
1
vote
1answer
46 views

Same page template but ackground image doesn't show

I have installed new theme for Wolf CMS here. This is a demo of the template. Why does the content background image show on the demo but not on my site? The HTML and CSS is the same, and the image ...
2
votes
1answer
47 views

css issue in wordpress

I am using a WordPress plugin and it has collapse arrows in the option. However, by default the word press theme has bluestar(*) being used for ul. In the page http://everything-evans.com/, on the ...
2
votes
3answers
545 views

Website has “lagging” effect. Causes? Tips and tricks to fix?

So I have this site here which has major performance issues. Scrolling is very slow, hover effects have a bit of lag and other similar issue. Unfortunately right now I am working off a cheap host so I ...