css

how to pre-load images only using css no js?

how to pre-load images only using css no js? for all browsers? I don't want to use CSS sprite. Is there any other solution? ...

How to customize form styled by django-uni-form?

I'm using django-uni-form to style my form using the filter my_form|as_uni_form: <form class="uniForm" id="my_form" method="post" action="./"> <fieldset class="inlineLabels"> {{ my_form|as_uni_form }} <div class="form_block"> <input type="submit" value="Submit"/> </div> </fi...

How determine css text of each node in html

How can I iterate over HTML nodes of a web page and get the CSS Text of each node in it? I need something like what Firebug is doing, if you click on a Node, it gives you complete list of all CSS Texts associated with that Node (even inherited styles). My main problem is not actually iterating over HTML nodes. I am doing it with Html Ag...

Change specificity by child

hi I'd like to integrate a theme tag to my elements so they appear in diffrent colours. But since the css selectors have the same css specificity the latest overrides the earlier defined rule. this is an example that shows my problem: .... <div class="red"> <div class="box">This should be red</div> <div class="yellow"> ... ...

Create a tag cloud of specific dimensions

Greetings, I'd like to create an HTML tag cloud inside a box whose width and height are absolutely determined. I want the text within to fit most efficiently--so if the text is simply one word, the word would be large and fill the box's full width (and as much of its height as possible). If there were four words, they would take up pro...

align right in a table cell with CSS

Hi, i have the old classic code like this <td align="right"> which does what it says: it right aligns the content in the cell. So if i put 2 buttons in this cell, they will appear at the right site of the cell. But then i was refactoring this to CSS, but there is no such thing as right align? i see text-align, is that the same? Mic...

Margin overflow problem

I have a problem with some CSS. This is my html <body> <div id="cn"> <div id="hd"> <ul> <some li's> </ul> </div><!-- /#hd --> <div id="bd"> </div><!-- /#bd --> <div id="ft"> </div><!-- /#ft --> </div><!-- /#cn --> and there is my CSS: div#cn { position: relative; width: 960px; margin: 0 auto; backgroun...

HTML Table with Fixed header, Resizable Columns and can size to less than the content width

Hi. I'd like to include a table in my web application thing that has a fixed, styled, header AND resizable columns AND to be able to resize the columns (both by when the browser is resized as the table is 100% and by the user resizing the columns) to less than the content and the content get truncated (hidden). Also somehow I'd like th...

Visible Area tag?

How do I make an html < area /> visible at all times, not just on focus? Seems it should be as simple as this: html: <img src="image.png" width="100" height="100" usemap="#Map" /> <map name="Map" id="Map"> <area shape="circle" coords="50,50,50" href="#" alt="circle" /> </map> css: area {border: 1px solid red} No matter what I do,...

Making parent's background to be on top of childrens in CSS

I have the following DIV structure: <div id="parent"> <div id="child"></div> <div id="child2"></div> </div> I want to apply one half opaque background into the parent DIV, and one fully visible background to the child DIVs. However, it seems that the child will take over the parent, so, I have now no idea how to come over with this. ...

Can I render this kind of drop down using CSS?

I want to buid a web page. The page contains a drop down which should look like this: Is it possible using CSS or I would need to use a image with some javascipt? ...

css background doesn't stretch with modal box content.

Hello, I have changed a css file for a modal login window/popup. The problem was that when I used the login form, I have some scrollbars at the under and on the right side. I came up with the idea to stretch the login dialog to make it all wider and heigher. The problem now is that the background doesn't stretch with the new dimentions....

css hover breaks page layout in IE WHY?

I am using a CSS style hover on some image links on my page. When a user hovers over an image, it's background position changes, providing a highlight effect. When I hover over the image in i.e.6 my page gets pushed down by 40px. Why is this? ...

How to create the + button with CSS?

When you input "google" into Google, you will see there is a + button Show stock quote for GOOG With firebug, you can see <div class="csb mbi">, what is the content of the class csb mbi I want to create such a button,and after clicking it, it will become a - button. How to do it? ...

Swap elements using CSS?

I have fairly simple layout, like this: <div class="card"> <span class="attack">1</div> <span class="defence">2</div> </div> They're arranged on top of each other with simple display: block. What I want to achieve is when a card is in specific areas, "attack" shows on bottom and "defence" is on top. I know I can make it with jQuery,...

Simple and good CSS/HTML IDEs for Mac OS?

What are some good and simple IDEs for writing CSS/HTML code on the Mac? I realize a similar question has been asked before (here, for example), but most answers are about Windows tools. This list includes some CSS IDEs for Mac OS, but it would be good to know which ones are popular (and the list is probably not complete). I'm looki...

CSS/HTML: Does using max-height on images help HTML rendering?

I just finished reading YSlow recommendation to always define the image dimensions (height/width) to improve HTML rendering performance. However, I don't know the image dimension I'm linking too. What I do know is that the height will never be larger than 200px and the width will never be larger than 300px Would I be a benefit if I de...

How to change CSS with jquery ?

I have the following HTML generated dynamically by PHP. When I click active, it changed to inactive and vise versa. I added div class='status' for jquery manipulation. (Do I need it? Can I do it without this div?) I want to change CSS class='status' to class='inactive' when I click active and when I click inactive changing CSS class to...

Position a Div to appear below another DIV

Hi, Ive got two DIV elements one of which has absolute position (lower left corner of main DIV). The second DIV is hidden and only displayed by clicking on a link. I need the second one to appear just below the first one. But since the first div's position is absolute the second one appearing on top of first one. //HTML Code <d...

How does "3D Meninas" work (CSS/Animation) ?

Hi all, Today i found this site, "3D Meninas", with a nice effect of 3D animation. When I look at the HTML code, it seems that there is no <script> or event, so I guess it only works with CSS. I'm not a CSS guru, can someone tell me how it works ? Thanks ...