css

Images are overflowing their container in IE8 with Fancybox

In a sort of follow up to this question, I have another problem in IE8. When clicking the gallery and the lightbox appears, the images are overflowing their containing element (by the looks of things). Has anyone ever experienced this before? Of course, the good guys (Firefox/Safari/etc) display it perfectly. How do I fix this? Tha...

making site rendering compatible with all browser only depend on CSS or X/HTML has any role?

If CSS is only factor then What thing in css should be in our habit to make site compatible in All A grader browser. Firefox, Safari, IE 6, IE 7, IE 8 Can we avoid the need of Conditional CSS for IE? ...

How to open tab on mouse over using jquery without using iframe and putting all content in same page?

I just want to open another tab without refreshing and on mouse over like this http://fnagel.github.com/jQuery-Accessible-RIA/Tabs/mouseover.html . Is it possible with these things. Pages url should be change like as it now. I want to keep content in separate page on clicking on another tab it should open without refreshing i don't wan...

CSS : Table with Labels and Text Boxes

I am trying to break the table crutch... I want to place 3 "labels", "First", "Middle" and "Last" over 3 text boxes so that the labels are above the corresponding text boxes and the labels and text boxes are vertically aligned. In other words, I need a 3 columns table where the first row has 3 labels and the 2nd row has 3 text boxes in ...

help with css on border image

I'm trying to create borders with images, and I'm almost there, but the left and right divs aren't quite right. The left one is under the TL, which is bad, and the right one floats under it for some reason and makes the bottom stuff all shifted over. I could attach an example if I knew a good site to put sample stuff on (don't want to gi...

How to control the layout in JSF?

Hi, I am writing a web application (While learning JSF from scratch, and thanks to this site I was able to do this). I have managed to get pretty far but there is something I can't figure how to approach to. Currently I have this: Link to full size screenshot As you can see, I don't know how to place things where I want them. At th...

CSS: How to have position:absolute div inside a position:relative div not be cropped by an overflow:hidden on a container

I have 3 levels of div: (In green below) A top level div with overflow: hidden. This is because I want some content (not shown here) inside that box to cropped if it exceeds the size of the box. (In red below) Inside this, I have div with position: relative. The only use for this is for the next level. (In blue below) Finally a div I t...

Inline Blocks and Text Wrapping with CSS

I want to display a checkbox, followed by some text that wraps around below itself. The HTML without any CSS looks as follows: <input type="checkbox" checked="checked" /> <div>Long text description here</div> I want it to display similar to: X Long Text Description Here It currently wraps around like this X Long Text D...

Is there anyway of modifying the CSS in the Webkit's CSS inspector?

Is there anyway of modifying the CSS in the Webkit's CSS inspector, and seeing the results in real time (just like Firebug)? I'm using Google Chrome (I tried Firebug Lite for Google Chrome but it doesn't work) ...

Future proof CSS hack for LTE Opera 10

I’m currently using @media screen and (-webkit-min-device-pixel-ratio:0) { example {} html:first-child example {} } to target Safari + Opera 9.2 Is there a safe way to target opera gte op 9.5 or lte op 10? (for example it won't be picked up by an upcoming version of firefox) By the way, type="text/opera" isn't working any...

is there a way to select :first-word of <p>?

like we select p:first-letter? I know there is no property called p:first-word but if any other way SO user knows. I don't want to add anything in HTML. ...

CSS - restrict cell width to be not more than remaining space

The important thing in my example below is the wideData class selector. I want to use this to cause text surrounded by a wideData div to appear in a scroll box if it cannot otherwise be displayed without causing a horizontal scroll bar to appear on the containing browser window (overflow:auto). This works as I want if the div is not con...

Is it a good technique to load different CSS for different browsers?

I have designed many web-templates. But (except my first one) I've never used browser detection scripts to load corresponding CSS. I am not sure whether it is a good technique, or just an alternative way (to struggle with a single CSS to satisfy all the browsers)? ...

automatic slide show with play puase buttons

In my application i want automatic slide show with play puase buttons. plz give me examples ...

sifr3 + safari4 osx page zoom

Hi - is there something in the implementation of Safari4 page zoom that trips up sifr3's width calculations? When I use the browser zoom feature [zoom text unselected] on the Official SIFR3 Demo (http://dev.novemberborn.net/sifr3/beta2/demo/) on OSX Safari 4.0+, the replaced h1 text starts moving to the right and eventually the white ba...

CSS Image Viewer - Align centre of the screen

Hi All, I want to use the below image enlarger/viewer but i would like the popup of the enlarged image to appear on the center of the screen. http://www.dynamicdrive.com/style/csslibrary/item/css_smart_image_enlarger/ I tried many ways but was unsuccessful.... Any help on this would be much appreciated. ...

How to position relative elements with lots of next to a element that are not as high, floating left

Hello, I have a page where I have a menu to the left and to the right I have a new section with a lot of text. The text is positioned correctly to start with, but as soon as the text goes below the left menu's height, the text is positioned more to the left. I understand that this is because the section is floating (pls correct me if I'...

IE6-7 table inside li leave a gap

Hi a am trying to create a tree using CSS. In FF works fine , IE6-7 fails. I have a ul/li structure and inside li i create a table to display the tree row. On IE i have a gap between li and table. Here is the code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional....

css opacity on hover of div

Hi all. I am new to CSS. I just want a div over another div on hover and its transparency should increase. I have done some thing like that <div id="maincontainer"> <div id="picture"><img src="bill.jpg" alt="Bill Gates"></div> <h1>A floating image</h1> <p id="bill"></p> <div id="mem">sfasdf</div> </div> <div id="column1"> <p>Haec disser...

How can I apply rules to a cell only when the row isn't being hovered?

I have a table where: The rows and cells normally have no background specified; the table's background shows through. Rows with the :hover pseudo-class have a background color to highlight them -- e.g., to track rows as the mouse moves over the table (in IE7 and anything else modern). Some cells need to be highlighted with a different ...