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)

3
votes
1answer
143 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 ...
3
votes
1answer
729 views

What's the pro/cons of Adobe TypeKit API? Any best practices?

With all the Open Source fonts I have available, and I can download them via the CSS font directive, what's the benefit of the TypeKit API? Are there drawbacks of this? How does it work technically? ...
3
votes
3answers
156 views

div collapsing over repositioned element

I want a list of rows that have the following look to them: +------------------------#main-----------------------+ | | | ...
3
votes
1answer
7k views

Making a div wrap around the content

I have a div but it fits to the borders of the container instead of wrapping around the text. I tried float:left but it will push it to the side and there's no way to make it go to the center. Help? ...
3
votes
2answers
262 views

Implementing inline editing for a web order form without using Javascript

As the title states, I'm trying to find a good solution to implement inline editing for a web order form with just HTML/CSS. The only mediocre solution I have right now is this -> ...
3
votes
1answer
2k views

CSS framework that support Internet Explorer 6, 8 out of the box

I am developing a new web application that must support Internet Explorer 6 and 8 (it's a strict requirements). I planned to use a CSS framework (like Twitter Bootstrap). However, it did not support ...
3
votes
1answer
346 views

Collapsible menu and amount of links in a web page

One of my pages contain three levels of a collapsible menu (JS + CSS from mycssmenu.com). There are a dozen first level items displayed to users, each one with various second level items, and finally ...
3
votes
2answers
711 views

How to force browsers to always reload xslt files?

Related: Apache: How can I force the browser to reload CSS files? I'm building an xml page (on an apache2) that is supposed to be translated to xhtml by the browser, so my server also serves a ...
3
votes
2answers
1k views

Should I change from reset.css to normalize.css

I have been using css reset for quite a while now in different project, and I am quite pleased with it, always get good results. One thing that always bothered me was that I needed to overwrite a lot ...
3
votes
2answers
1k views

Apache2 virtual host localhost doesn't render CSS when offline because of absolute path

I'm running apache2 on a local server. I use no-ip.com to route DNS to that server through my cable modem. While disconnected from the web and working on localhost my web pages don't render the CSS ...
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 ...
3
votes
0answers
57 views

What is this modern look called and what is the template used for it? [closed]

I haven't been paying attention to modern websites for a while, but in the few years or so a bunch of websites with the same, very smooth, very sleek presentation format have appeared. Some examples: ...
3
votes
0answers
205 views

CSS rounded corners around image [closed]

I have tried several ways to get rounded corners around images without success. The best I got was using the image as background and applying the round corners style to the div as in this picture. ...
2
votes
4answers
202 views

Where can I find resources for best coding practices in web development?

You'd figure that this would be an easy topic to google, but unfortunately I've been looking for a couple weeks and have yet to find really anything that I'm looking for. The problems I'm running ...
2
votes
6answers
116 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?
2
votes
4answers
127 views

Splitting big CSS file into parts for quicker loading

So I have a relatively big CSS file. I thought about doing the following, splitting it to 3 parts: 1st part will have the main selectors that are needed to run on the main page that gets the biggest ...
2
votes
2answers
235 views

Is LESS ready for use in a production site?

I'm considering using the Twitter Bootstrap HTML/CSS templates which use Less (a sort of scripting language for CSS) I've never used it so I was wondering if it's ready for "prime time".
2
votes
2answers
101 views

How are hexadecimal color codes added together to produce a color in HTML?

I know that web colors use RGB color model in which red, green, and blue colors are ADDED together in various ways to reproduce a broad array of colors. Now, suppose I have a color: #800080 (which is ...
2
votes
2answers
385 views

Use of rare fonts on the web

I have just been peeking at the source code of a web page. I notice that there is a CSS rule that defines what seems to be a rare font for some nice-looking subheadings. Html (Source file) ...
2
votes
3answers
400 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 ...
2
votes
1answer
130 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 ...
2
votes
3answers
955 views

CSS sprite, what html tag to use

I am thinking to switch to CSS Sprite for my images. The main problem is I need something compatible with alt attribute. (Seo-purpouse) What Can I use? The first think I thought was to use a standard ...
2
votes
4answers
125 views

File Specific CSS. Inside HTML doc or as a seperate file?

What is the preferred method for organizing CSS that is only used by a single HTML page. Should I put the CSS in: a section in the HTML doc? a CSS file associated with the HTML doc? eg: ...
2
votes
2answers
102 views

Since when is layering possible in Websites?

I'm asking because I remember a time when it wasn't possible to create a div box on another one, and I was wondering when was it introduced. It's probably a matter of CSS version, isn't it?
2
votes
2answers
346 views

Personal Web Page

I recently got a domain and am considering hosting a personal web page. I did some research and narrowed my options down to either Google AppEngine or GitHub pages to host my website. The website is ...
2
votes
2answers
1k views

Load custom CSS through browser to site being viewed?

Is there a way I can load a CSS stylesheet to a site I'm viewing in a browser? I'm working on my company website. For obvious reasons I don't want to make changes to the live version of the site ...
2
votes
2answers
396 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 ...
2
votes
2answers
104 views

Clearing floats? Or something else?

I'm working on this website for my dad: http://smartcampusdeals.com/TendonAiD/index3.html and the three columns (with the stick cartoony people) extend past the container. Right now, I have the ...
2
votes
1answer
132 views

How can I get this effect (lines in an input)?

How can I get this effect (lines in an input)?
2
votes
2answers
557 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
291 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 ...
2
votes
4answers
514 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 ...
2
votes
4answers
3k views

Good free CSS Sprite for icons

I am working on a small project where I need some of the basic icons: edit, favorite, delete. You know them. Now i can download them all seperate, and put them together in a sprite, but I was ...
2
votes
1answer
120 views

How is style of tags at math.stackexchange done?

I like the style of tags at math.stackexchange.com. In fact, I'd like to create something similar and I was wondering how are they styled. First of all, I've launched Firebug and was trying to ...
2
votes
2answers
6k views

How to show a preview thumbnail on Facebook of a imageless website?

I have recently designed a website with no img tags, only one big fat CSS sprite with everything in it. Though, when I try to publish that website on Facebook, it won't show a preview thumbnail — ...
2
votes
2answers
1k views

Top and bottom gradient using CSS

I have a background that has a top and bottom gradient and I want it to show on a container layer. The problem is the bottom gradient since it has to appear at the very end of the container div. Any ...
2
votes
3answers
111 views

Is it possible to make all html links to share the same title?

The thing is I have a table containing ~2000 rows where each row contain a link that has the same title e.g. <a id="1" title="A very long string common to all my links that i would like to have ...
2
votes
1answer
337 views

Using <strong> for introductory paragraph to a post - a bad idea?

I have a news website and on most posts the first paragraph is in bold. Currently the authors are just using <strong> to bold the paragraph, would it be better from an SEO point of view to ...
2
votes
2answers
104 views

How and where to place - css, html and images in email to make it a HTML email? [closed]

How and where to place - css, html and images in email to make it a HTML email? I have seen many advertising emails in my inbox and I am curious to know how does the email body display the HTML.
2
votes
4answers
285 views

Flipping text is good for SEO?

My client's name company has a flipped letter on its name, so for example "PEOPLE" the P is flipped, I managed to flip the P with 2 span tags, but now I am thinking to do this for SEO reasons is not ...
2
votes
1answer
2k views

Is there a way to use @media queries with pages embedded into Facebook?

Would a @media query recognize the 520px Facebook iframe limitation?
2
votes
4answers
132 views

How to tune up colors in web page

Could you advise me some techniques and tools that you use to tune up colors in a web site? The website has background and there are some images with logos. If I change the background I need to change ...
2
votes
2answers
61 views

Is there any downside to using <embed> with Flash content?

I've recently learned that HTML5 now officially supports the <embed> tag. With that in mind, is there any reason not to just use it to embed Flash content into HTML5? Would there be any browser ...
2
votes
4answers
291 views

SEO HTML for plain html css website

This isn't really a programming question, but I couldn't think of a place where people can better answer my question then here. I allways had a joomla website, for me it's good, but it's not very ...
2
votes
2answers
192 views

How to use CSS to get 5 buttons aligned like this [closed]

I'm struggling to get a design like I put in this image in CSS. I'm using wordpress, and my theme just adds a full image to the top, I would like to make the most of space. ...
2
votes
2answers
461 views

Does Google host all the jQuery UI themes?

I have seen the base theme http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.3/themes/base/jquery-ui.css Are the other themes found in the gallery also hosted (Darkness, Smoothness, etc.)? If so, ...
2
votes
1answer
140 views

Will using same colour H1 as background hurt SEO if I use background image?

Can it hurt SEO if H1 headings are the same colour as the standard body background colour, even if all H1 headings are placed in divs that have a contrasting background image? (So to be clear: the ...
2
votes
2answers
684 views

Responsive design best practice: Duplicate html elements for media querying and SEO impact?

I have a page with, in order of html appearance, a figure tag, headgroup tag, and an article tag. In order to make a page's design responsive using media queries, I need a different order for ...
2
votes
1answer
26 views

Apply CSS to a particular page element in Firefox

Is there a Firefox extension that will let me simply select a visible element on a page, get a CSS selector referring specifically to that element (as the Firefox Web Developer extension already ...
2
votes
1answer
992 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 ...