Browsing Questions About css (1)
Why doesn't the percentage width child in absolutely positioned parent work in IE 7?
I have an absolutely positioned div containing several children, one of which is a relatively positioned div . When I use a percentage-based width on the child div , it collapses to 0 width on IE7, but not on Firefox or Safari.
If I use pixel width, it works. If the parent is relatively positio…
How do you test layout design across multiple browsers/OSs?
What is a good method for testing website layout designs across multiple browsers and operating systems?
Detecting font in JavaScript
Suppose I have the following CSS rule in my HTML.
body { font-family:Calibri,Trebuchet MS,Helvetica,sans-serif; }
How can I detect which one of the defined fonts was used in the user's browser?
Edit for people wondering why I want to do this: The font I am detecting contains glyphs not av…
In HTML, how to word-break on a dash?
give a relatively simple css:
<div style="width:150px;">
12333-2333-233-23339392-332332323
</div>
How do I make it so that the string stays constrained to the width of 150, and simply wraps to a newline on the hyphen?
Html CSS Editor
I'm looking for a good editor for both HTML and CSS. I currently use the Firebug Firefox extension, and this is a great tool, but I'm looking for something I can use without necessarily firing up a browser. Ideally it would have a live preview of what I'm coding.
Edit: As a student, I have acce…
Can you recommend a good CSS online resource or book?
Are there any favorite online references or good introductory and intermediate/advanced books on this topic that you'd recommend?
The backstory is that I'm working on a web development project that is "re-skinning" our existing web site to make it more usable and visually appealing given curren…
What sites offer free, quality web site design templates?
Let's aggregate a list of free quality web site design templates. There are a million of these sites out there, but most are repetitive and boring.
I'll start with freeCSStemplates.org
I also think other sites should follow some sort of standards, for example here are freeCSStemplates standa…
How can I make the browser see CSS and Javascript changes?
CSS and Javascript files don't change very often, so I want them to be cached by the web browser. But I also want the web browser to see changes made to these files without requiring the user to clear their browser cache. Also want a solution that works well with version control system such as Sub…
CSS background color in JavaScript
How can I set the CSS background color of an HTML element via JavaScript?
Wrapping lists into columns
I'm using ClodFusion(sic) to populate a template that includes HTML lists (<ul>'s).
Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns.
Is there an HTML, ColdFusion or perhaps JavaScript (I have jQuery available) way to do…
Setting a div's height in HTML with CSS
I am a CSS newbie trying to layout a table-like page with two columns. I want the rightmost column to dock to the right of the page, and this column should have a distinct background color. The content in the right side is almost always going to be smaller than that on the left. I would like the d…
How to set up a CSS switcher in ASP.NET
I'm working on a website which will switch to a new style on a set date. The site's built in semantic HTML and CSS, so the change should just require a CSS reference change. I'm working with a designer who will need to be able to see how it's looking, as well as a client who will need to be able t…
Is there a business reason for striving for pure CSS layout?
It seems like every time I try to create a pure CSS layout it takes me much longer than if I'd use a table or two. Getting three columns to be of equal lengths with different amount of data in them seems to require particular fancy hacks, especially when dealing with cross-browser issues.
So,…
FF3 WinXP != FF3 Ubuntu - why?
I've got a website that I've just uploaded onto the interwebs, and it's displaying differently using Firefox 3.0.1 on Ubuntu and WinXP.
Two things I've noticed on Ubuntu:
The favicon is missing
The background color isn't displaying (it's set in the stylesheet)
What have I d…
What is the best way to create rounded corners using CSS?
What is the best way to create rounded corners using CSS?
Next Page >