css

Height of content inside a div

The content of a page is loaded inside a div: <div id="content">Some content</div> The div has a fixed height and uses scroll in case of overflow. I want to adjust the height (make it smaller) of the div onload if the content does not need the fixed height of the div. How can i meassure the height of the content inside the div? I tri...

IDE to create DIV based web pages?

Is there any IDE that I can create DIV and CSS based webpages in GUI mode? Like we have Dreamweaver. ...

Why doesn't this drop down menu work in IE?

I have a drop down menu which I found a tutorial for. In Firefox and Opera the drop down menu works fine. But in Internet Explorer it doesn't work. The sub menues are misaligned. They aren't placed under their parent item but a bit more to the right. Why doesn't it work in IE? Is there a mistake in the JavaScript code which should make...

html - table row like a link.

Hello, i can't set my table row as link to something. I can use only css and html. I tried differenet things from div in row to something another, but still can't make it works. ...

UL don't stay within their containing DIVs?

I have a really simple set up <div class="container"> <ul> <li>Item one</li> <li>Item two</li> </ul> </div> I had assumed that all contents and the bullets of the ul would be within the div but currently this is not the case. The bullet points for the UL appear outside of the div and effectively disappear when overflow is...

How do I remove background-image in css?

I have a general rule which gives all DIVs a background image. I have one div (with id='a') which I don't want it to have the background image. What css rule do I have to give it? ...

text-selection in CSS ?

I'm trying to change text-selection on my HTML page. I want to change the hex value in css for the selected text whenever i select some text from para. How can i do that in CSS ? For example as shown in this image below it is changing color to cyan. Is it possible to do ? if So How ? any field in CSS ? ...

html, div, css - hover action and background image changing

Hi, I have such code: <div id="footer"> <a href="http:/tra-ta-ta.com"> <div id="logo"></div> </a> </div> #logo { position: relative; width: 100px; height: 18px; float: right; background-image: url('../images/logo_def.png'); background-repeat: no-repeat; background-position: 50% 50%; } #logo a:h...

When width of an element is greater than the width of a viewport…

Hi We use overflow property to specify whether scroll bars should be provided when content overflows element’s box. Is there a similar property with which we could specify whether horizontal scroll bars should be provided when the width of an element is greater than the width of a viewport ( ie display area )? thanx ...

Is CSS used anywhere besides web browsers?

Just curious - apart from its ubiquitous use in specifying the presentation of HTML in modern web browsers, do any programs or standards utilize CSS? ...

Most customizable Lightbox plug-in for jQuery?

I am searching for a simplistic jQuery Lightbox plugin with minimal features. Must support Ajax / Inline / Images Must have a close button. Must be easily customizable (CSS wise). I tried a bunch of plugins and they have so much unnecessary styling. Must have a close button in the top right corner. Must be a jQuery plug-in. I could w...

Does anyone used css units in, cm, mm, pc, ex? In what context?

I used css units, px and em frequently & seldom pt. But wonder, on what context other units in, cm, mm, pc, ex are used? ...

Aligning Multiple Instances of JCarouselLite

I am using JCarouselLite to produce three scroll boxes on a website. 2 of the carousels line up properly (New, Gifts), but a third does not (BestSellers). The image floats to the left because the plugin keeps calculating the width incorrectly. All three have the same underlying HTML code, but I can't get the BestSeller Carousel to line ...

Drop down/CSS inquiry

I have an unordered list set up for a hover/dropdown menu. I have the structure set up perfectly as far as the code. The ul and li structure is all set. I am wondering if anyone can tell me the css structure/style to get it to work...aka hover over the main button and have the other links drop down. I need to know how to do that as well ...

CSS: Hover one element, effect for multiple elements??

Hi, this is my first question here! :) I'm looking for method for my hovering issue. <div class="section"> <div class="image"><img src="myImage.jpg" /></div> <div class="layer">Lorem Ipsum</div> </div> Now, both classes (image and layer) has borders, both have different color for normal and hover. Is there way to make so if I hove...

IE7 Bug where text gets cut off inside a child div

I have been struggling with this issue for a while. I have a problem with text inside a child div being cut off in IE7 or 8. Works fine in other browsers. parent div - float left child div - no height, text gets cut off I have tried a few hacks and methods I found googling but nothing works, please help! Thanks ...

Are CSS styles applied to markup that is added after the page loads?

Hello. I'm learning Javascript and CSS and have run into an issue where my CSS styles aren't being applied to markup that I'm dynamically generated from XML and writing to document after the page has loaded. I can only assume that the styles aren't being applied because I'm modifying the document after it's already been loaded. Is thi...

HTML: Anchor block element inside bottom of parent block?

Is there a cross browser method of attaching some content in a <div> to the bottom? One difficulty is that the <div> may have an arbitrary height applied, but I want certain content to be stuck to the bottom of it at all times. This would have been accomplished in the bad old days like this: <table style="height: foo;"> <tr><td va...

iPhone: sticky on-screen header or footer in webkit (HTML/css)

Is it possible to create a sticky header or footer such that no matter where you scroll the header/footer stays put? I'm looking for a HTML/css/javascript solution for iPhone/webkit. ...

The comparison of ems to pixels

Hello, can someone please tell me the value of an em to pixel? 10em = ?px ? thanks ...