css

CSS, jQuery and Navigation Control - a minor tweak needed

I have a navigation that uses jQuery and CSS to control image mouseover positioning and dropdown menus. Everything works as it should. I have a request from the client though to make one modification. You can see the example here: http://www.rouviere.com/jr/index.html (best viewed in Firefox or Safari right now) If you mouse over the l...

set image size with respect to the screen resolution

hey guys, I am trying to build a website for myself.. I want to use an image as the header... I have made sure that my background will scale itself for any screen resolution... How do i make sure the image(header) will also scale it self according to the screen resolution... for example: my image is 350px int width and 130px in height....

how to make the parent width equals the width of all element inside it?

Hello my CSS code .child{ width:100px; height:100px; display:inline-block; } my HTML code <div id="parent"> <div class="child"> </div> <div class="child"> </div> </div> the .parent width will be 100%,but i want to make the parent width equals exactly the some of all childs, but i don't know how many chi...

Set different background image dependent on match of child element

Hi there, Can I set a different background-image CSS attribute to my <BODY> tag depending on successful match of a found child <div class="template" /> element? I know of the CSS selector BODY>.template but that alters the template class where an immediate parent match of BODY exists, I want to control BODY if template exists as a chil...

set the height of a container to hold dynamically-sized widget

Here's an example: http://la.truxmap.com/marker?id=thesweetstruck&amp;t=1267058348000 The widget on the right usually overflows unless i set the height of the container to some fixed size like 1800px. What I want to do is have the div with the white background (container) always span AT LEAST until the bottom of the widget. I don't w...

"selected" menu item isn't selected.

When the class "home" is added to an li the background image of the tab is supposed to be a different image than the black background. I'm at my wits end right now and would love any help you could offer. You can see an example at http://www.wilwaldon.com/hornav/index.html Thank you so much for your time, it's greatly appreciated! ...

Pros and Cons of leading HTML and CSS Skinning Combinations

I am trying to build a theme right now for the Spree eCommerce platform for Rails. Because Spree is already a fairly large project, it has chosen a certain set of patterns and frameworks for skinning: Less and YUI. But from reading around on Google, other skinners seem to work faster/better using other frameworks. So I am wondering wh...

CSS: How to make left float div to adjust height dynamically?

Hi, How can I make my floated left div with a static content to adjust automatically its height to the same height of the right floated div with a dynamic content? So what I am trying to accomplish is that the both left and right div will have the same height (left div adjusting automatically to the right div's height) Below is the sa...

Using ClientBundle image resources in css urls

I'm building an application in GWT and have a skin from my graphic designer which I've plugged into the app using UIBinder and it works beautifully. Now I want to bundle all the images using ClientBundle. Mayne of these images are used in the css file e.g. .nav{background:url(nav_bg.jpg) left top repeat-x; height:27px; clear:both;} B...

How to add Page Break dyanamically to Print page?

There is one long in the content on the print page, but while we print the some content of the text cut down. please let me know , if there is any dynamic way to add page-break css. the content could be any thing. ...

Why are these floats wrapping in Internet Explorer?

My website, ReadyMadeWeb.com, looks great in FireFox, Safari, and Chrome, but of course IE has different plans for the floats used the in the #content area. You can see what I mean if you view the site in IE. The main column is pushed below the first sidebar. The content boxes and the de.licio.us sidebar both sit within another div. ...

Is there a CSS optimizer that will discover identical single properties in selectors and group them together?

Here is an example of what I'd expect: Input: a { background: red; } p { background: red; } strong { background: red; color: green; } Output: strong{color:green;} a,p,strong{background:red;} Most optimisers will output something like this: strong{background:red;color:green;} a,p{background:red;} Notic...

Styling HTML FORM elements with padding, with width 100%

I'm styling a form by using a table with fixed-width columns and I want the input elements inside the <td> to fill the container. I know the CSS box model and I know the elements would bleed through with width: 100%, but the problem is with its consistency. <input> elements bleed through as expected but <select> elements don’t. This res...

What's the idea behind image sprites, how to approach it?

How do you approach the use of image sprites in css? Should I take all the images in my website and combine them to one image sprite? Is it really that beneficial? How hard is it to maintain those images and change them later on? ...

How can I clean this CSS code; making it shorter or delete unnecessary parts (CSS perfectionist needed).

How can I clean this CSS code: making it shorter, nesting properties together, deleting unnecessary code, etc. /* reset */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, ...

Scrollable Content With Javascript in a Div with overflow:hidden

I have a need to display a lot of image thumnails in a small space. My idea is to have 3 columns of thumbnails with an undetermined amount of rows. I planned to put this content in a and then put that inside a viewport div. Like so: <div id="viewport" style="width: 300px; height: 300px; overflow: hidden;"> <div i...

Ajax Accordion problem with css display:list-item;

Hi there, I have an accordion control extender in my page which is works fine, I added a css file to show the as a list, it is working perfectly in all the borwsers, but in IE compatibility view the list-style-type:square; is displaced and also there is one additional square added to top. is it a bug? Is there any other way I can sho...

Need help with CSS positioning

Hi, I am fresh to CSS design and I want to design a page similar to the following. I am able to separate the images with a span attribute, but I am not able to place the text and button as a single row. http://4.bp.blogspot.com/_cPEUCNW5H44/S4ZCS-H07sI/AAAAAAAAPPk/dNsF1CMIm4s/s1600-h/UI.PNG This is what I have done so far <div alig...

Icon List Menu not aligning properly in IE 7

Hi All, I have this alignment issue in css for IE7. I am trying to create this icon with text menu and it works fine in firefox and IE 8, but in IE7, the float is not happening. Why i chose this type of html code, is to have a hover effect when hovering the list, use image sprite instead of images. Can somebody please correct me where i...

CSS combining a Class selector with an Id

I use the following css: /* style.css */ #someId { background-color: red; } #someId.medium { width: 300px; } #someId.large { width: 500px; } with the html: <!-- medium.html --> <div id="someId" class="medium">hello, world</div> and <!-- large.html --> <div id="someId" class="large">hello, world</div> I know the above wo...