css

jQuery - select children on the same level (odd or even)

hi there, is there a way to replace following CSS with jQuery? .quote-body .quote-body { background: #f5f5f5 } .quote-body .quote-body .quote-body { background: #fff } .quote-body .quote-body .quote-body .quote-body { background: #f5f5f5 } .quote-body .quote-body .quote-body .quote-body .quote-body { background: #fff } ... and so on ...

How to set element (DIV/TABLE/other) height to 100% of its container?

I am trying to accomplish a simple 'liquid layout' with two width=50% boxes on the left and one width=50% box on the right, where the height of the rightmost box follows the leftmost boxes and vice versa. I want a spacing between the boxes of 10px, a nice 3d feel for the boxes and no border or margin on the outside. I have tried to impl...

PHP - Highligh selected link

How do I "highlight" (turn to a different color, make bold, whatever..) a link that has been clicked on? Example is here: http://www.celebrything.com/ Trying to get the Today, Week, and Month links in the right sidebar to turn a different color once clicked. Here's the code I'm using to show the results in the right sidebar: <div id...

How do I do the CSS for this?

Here is the wireframe: http://img46.imageshack.us/img46/9323/85329195.gif #header needs a background image of /header.png which is 750px wide. I'm just not sure how to do the CSS for this design. #footer is 100% at the bottom, (not absolute) ...

css div height 100% problem?

I would like a div to take all the screen height, that's why I found the following links: http://www.webmasterworld.com/forum83/200.htm http://www.thefutureoftheweb.com/blog/100-percent-height-interface the tricks: make the container have a specified height, for example: body{height:100%} seems work fine, however, I found that: once ...

What is wrong with my CSS menu?

The result is: http://img198.imageshack.us/img198/746/93502273.jpg You can see the obvious "whitespace" on the side. I have: <div id="nav"> <ul> <li id="n-home"><a href="/">Home</a></li> <li id="n-search"><a href="/search/">Search</a></li> <li id="n-advertisers"><a href="/advertisers/">Advertisers</a></li> ...

How to make CSS Column Design quickly?

I've tried all other Blueprint, 960 etc . I want make custom framework for custom width and gutters which should be modify for any width or spacing between boxes. I need the best optimize and quick way to make layout. Want to make a reusable framework/method/patteren in css. For examples: Edit: By now i found this article useful http...

Need For Uniform Browser Engine

Hello There, Of course, we have been witnessing a lot of browsers differences in rendering elements, in displaying those, the support for CSS, the support for html/xhtml standards and more importantly different layout engines such as Trident, Tasman, Gecko, KHTML, WebKit and Presto which is mainly why there are differences. I just wond...

2 <div>s in <div>

the best way center 2 divs inner div. Like this 1 2 3 4 5 6 7 8 9 10 11 12 1 --------------------------- 2 - main div - 3 - ------ ------ - 4 - -div1- -div2- - 5 - ------ ------ - 6 - - 7 --------------------------- Width and Height of main div is fixed. thanks ...

Why does this DIV move HTML content down ?

I have a DIV which I want to insert into my HTML content. Whenever I do, the content moves down from where the DIV WOULD have appeared in the content. It moves down the height of the div. I sat 'WOULD have appeared' because its position is set to relative. Here is some code: (THE DIV I MEAN IS THE ONE WITH ID="pop" <table border="0" al...

What real problems does using tables instead of divs present to the end user?

Forgetting about things that pertain exclusively to the developer like code maintainability and religion wars about semantics and what-not, my question is: what real world problems does using tables present to the user? Are there device that cannot understand a tabled layout properly? Does it decrease the page's relevance on search engin...

How to define spaces between two lines using CSS?

Margin, padding, or whatever? ...

sprite problem with image link

how to use sprite with image links. when i try to use as below link lost <a target="_blank" rel="nofollow" title="link1" href="http://www.yahoo.com"&gt; <div id="yahoo1" class="logosprite"></div> </a> css: #yahoo1.logosprite { background-position:0 0; height:16px; width:16px; } can anyone suggest better solution ? ...

Left Aligned CSS Drop-downs

I have a website with your usual 2 level navigation in the form of a dropdown using Suckerfish and the <ul><li> construct to create the menu. The problem is the menu is right aligned on the page, thus I'll need to make the dropdowns push out to the left, as shown, to keep them within the page: If the top level menu tabs were the same...

How to prevent line-break in a column of a table cell, not a single cell ?

How to prevent line-break in a column of table, not a single cell? ...

How to use css to style xhtml markup made only of divs like a table

See source code of this http://jsbin.com/iveso I can't change anything in xhtml code. And i need cross browser output exact like this. How we can give same look with less and optimize css This is CSS #ConferencesContainer { overflow:hidden; } #ConferencesContainer img { float:left; padding:0 10px 10px 0; } #ConferencesContainer #Con...

ISO-8859-1 vs UTF-8 ?

What should be used and when ? or is it always better to use UTF-8 always? or ISO-8859-1 still has importance in specific conditions? Is Character-set related to geographic region? Edit: Is there any benefit to put this code @charset "utf-8"; or like this <link type="text/css; charset=utf-8" rel="stylesheet" href=".." /> at the t...

IE 7/8 CSS div size problem with a img background

Hi guys. I'm designing a clean style to use in some web apps. And I've come across a IE bug (always the same). Well its pretty simple. I have a gradient background, and on top of it a rectangle with no border and its filled with nothing and with a shadow around it, giving the illusion that its on top of the background, as you can see i...

Drop-down with CSS

I got a reallly simple drop-down menu but got a problem with the submenus width. See it here: http://dl.dropbox.com/u/70953/SOSfrontpage.html My HTML is: <div id="navigation"> <div id="menu-dropdown"> <ul class="menu"> <li class="menu_punkt"><a href="http://itu.dk/people/lfel/Web-kodning/SOSfrontpage.html"&gt;Frontpage&lt;/a&...

in what conditions we can use css * selector?

in what conditions we can use css * selector? how much * selector is useful? is it only to make css reset or hack * { margin: 0; padding: 0; } or it has other valid useful uses? is there a ways to use * selector to optimize css using * selector? Is it supported in all browsers? ...