css

Why does my <div> not expand to height:100%?

I have 3 divs that correspond to this. I have #wrapper which wraps around everything. That is #EEE I have #contain which is inside #wrapper right after. That is #FFF (part with the content) I have #secondaryContent which is height:100% perfectly fine, position:fixed. which is inside both of those divs. I added borders to all the main di...

css border-bottom iexplorer

css: .item_fact{ border-bottom:#CCCCCC 1px solid; } html: <table> <tr class="item_fact"> <td> hello </td> <td> world </td> </tr> </table> IE7 does not display the border-bottom, but firefox and chrome does! how can I hack this css? =) thx. ...

Height 100% not working for DIV tag in Internet Explorer 8

I have the following code that I am using to display a search tool with a scrolling results section. In IE the code works fine: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html style="background:black;height:100%;width:100%;"> <head> <title>Report</title> </head> <body style="background:blac...

css selector to match an element without attribute x

I'm working on a CSS file and find the need to style text input boxes, however, I'm running into problems. I need a simple declaration that matches all these elements: <input /> <input type='text' /> <input type='password' /> ... but doesn't match these ones: <input type='submit' /> <input type='button' /> <input type='image' /> <inp...

Inline stretchy button with CSS background image

Anyone know if there's a bullet-proof (standards-compliant to XHTML1.1 strict, cross-browser, non-javascript) way to use CSS and background images to turn an inline link into a visual button that will stretch to accommodate different amounts of text (or text resizing)? I'm thinking I need to use background images as the designer's butt...

Apply random color to class elements individually?

My goal is to each div with a class of "main" to have a random background color. I have the script that generates the random color but, using jquery, I only seem to be able to apply it to all divs in the class. How can I select a div, apply the color, select the next div in the class, generate a new random color, apply it and repeat? Her...

jquery Getting rid of dotted outline around buttons

I'm trying to get rid of the dotted outline that appears in FF when you click an input of type button. This outline doesn't appear in Chrome. I've tried: .button { border:none; outline:none; } .button:active { border:none; outline:none; } .button:focus { border:none; outline:none; } None of these work. Anyone ...

Compatability problem on Mac browsers*

Hey everyone, I'm designing a little website ( you can see it here ) but I'm getting conflicts with something going from Mac based web browsers to PC based browsers. It seems to pop up on all Mac browsers and not on PC browsers. I have tested on Safari and Firefox on the Mac and Firefox/IE on PC. The image on the left is from a PC, the...

Prepend .css file - Firefox vs IE

I found out IE has different behavior vs Firefox when I use this $('head').prepend(''); That basically just to add the theme-2.css on top within HEAD tag (for theme purpose). I do that because I don't want it to load yet because I use the csspreload http://www.filamentgroup.com/lab/update%5Fautomatically%5Fpreload%5Fimages%5Ffrom%5Fcss...

How can I group H1 to H6 in CSS?

Can I apply a CSS style to all headers from H1 to H6? ...

(X)HTML+CSS Validation warnings

I try to pass my css valiation yet I still have a few warnings like the following: In (x)HTML+CSS, floated elements need to have a width declared. Only elements with an intrinsic width (html, img, input, textarea, select, or object) are not affected In fact, I don't understand very well what it relly means. Anyone can explain? ...

css float problem in a list

I'm having a problem sorting this out, basically it will be a list with icons and text below. Icon size remains the same but the text doesn't, as shown in the picture (http://i34.tinypic.com/33op84m.jpg ). The problem is when an Li has allot of text the rest float to the right of it. How can I sort this out. Mycodes is below: ul.iconi...

Expanding a Div in Firefox loading the Xap inside it twice.

I have a div that holds a Silverlight object tag. From the code on some user action (click on a button) I am expanding the Div to total browser window. I am doing it through Jquery addClass and Remove class. In those classes the difference is position absolute , height width 100% and increased z-index. It is running well in Ie7 and IE8....

link order in css

Whats the correct order of styling the <a> element (link, visited, hover, active). All are confusing by providing different combination like LVHA, LAHV. Can anybody specify the correct ordering? ...

Getting the class(s) of a div using jquery..

Well I already saw this question here. But m a little bit of confused. There were several solutions provided:- var div1Class = $('#div1').attr('className'); This one was the accepted solution with 2 up votes. var divClass = $("#div1").attr("class") This got an up vote too. Which is the correct one? And if both are correct, what ...

jQuery .cycle() is invisible in Webkit browsers [Safari / Chrome] on first load (after refresh everything works fine!)

I'm using jQuery cycle to implement a slideshow effect. You can click on any slideshow image to slide to the next one. This works fine in all browsers. Only in Safari, something really weird happens. Upon the first page load, no slideshow images are displayed at all! After reloading the page (either by refreshing or by hitting the 'Go'...

Change cursor type on input type="file"

Simple question... How do I change the cursor type on a file input type? I've tried the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html> <head> <style> input[type="file"] { cursor: pointer; } </sty...

box using HTML/CSS but is open at the top right?

I have a div which has style properties as "border-top, left, right, bottom" set. But I do not want the border top to complete the box (which would be a rectangle). I want a small (About 2-3px) opening at the top right (on the length side of the box). How can this be done? I think there is a property in CSS called "border-top-width" ...

CSS classes: base+additional. How to define?

Hi! I have a div: <div class="navigation mainPage"></div> I need to specify that: every DIV that has a class "navigation" AND class "mainPage" should have "width: 999px". Is this possible? thx ...

What's the CSS style I need to make a readonly textbox control look disabled

Just to pre-empt the 'why do you want to do this' replies Here's what I'm doing: If another control is clicked I make an ajax call to get a server generated value and stuff it in the textbox. I then, on the client-side, set the control to readOnly (I don't want to control to be disabled as I need it to postback so Im setting the readOn...