css

What is the best way to give support `nth-child` in one shot to all IE version?

What is the best way to give support nth-child in one shot to all IE version? I want to give style like this. for some particular pages. #products tr:nth-child(even) { background-color: red; } #products tr:nth-child(odd) { background-color: white; } ...

Setting overflow:auto, yet not horizontal scrollbar is displayed

Hi, Why doesn't div with id "shouldHaveScrollBar" doesn't display a horizontal scrollbar: <div style="overflow:hidden; width: 300px; height: 300px; background-color:blue; color:white"> <div>Some stuff</div> <div>Some other stuff"</div> <div id="shouldHaveScrollBar" style="background-color:grey; ...

persistent header of text (CSS) in a div

I have a div called "appHeader"... and the content of it is subject to change dynamically. I'd like some static text at the top of that div that is highlighted ... and have this done in css. The text is going to say something like "Property of such and such... etc" but it is static. Can you create static content within CSS? Is this ...

How do I simulate a hover with a touch in touch enabled browsers?

With some HTML like this: <p>Some Text</p> Then some CSS like this: p { color:black; } p:hover { color:red; } How can I allow a long touch on a touch enabled device to replicate hover? I can change markup/use JS etc, but can't think of an easy way to do this. ...

How to convert a rectangle to TRBL CSS rect value?

I'm not quite sure how to put this, but here goes... The css clip attribute is defined like so: rect(top, right, bottom, left). However, I'm exploring the use of a custom Rectangle 'class' to encapsulate some operations. The rectangle class has the attributes height, width and x, y. The x and y values are encapsulated in a Point object...

Whats the best way to debug css on ie?

in firefox I can usee firebug, in chrome I can use the css console. Both to make live changes to css for troubleshooting purposes. However I do not know of a way to do this in IE, which is where I have the most css issues. So, whats the best way to troubleshoot css issues in IE? Thanks! ...

KML Layers Cursor CSS - Google Maps API v3

I've run into a small problem with the semi-new KML Overlay functionality with Google Maps API v3, wherein while I am able to use "suppressInfoWindows: true;", the cursor still appears as though the overlay(s) are clickable. Is there a way at this time to change the css on the overlay(s) so that the cursor is the default cursor, so that...

Margin animate problem with Monitor display settings

I have an issue with an animation on a webpage. I have this div with text inside of it that I set the margin using css and when the page is loaded I use jquery to animate the div to a certain part of the page. The problem is it works with my concrete pixel settings, but if I change the properties of the monitor display settings in screen...

can mootools change the attribute of a css .class so that the change is reflected across all elements that belong to that class?

similar to to this here... http://www.shawnolson.net/a/503/altering-css-class-attributes-with-javascript.html i know i can change each element's style's individually, but i want to change a lot of elements styles at the same time, and the browser seems to struggle over about 40 elements. thanks :) ...

Definition list disc not showing up

CSS: .about dt { list-style-type:none; font-weight:bold; } .about dd { list-style-type: disc; list-style-position: outside; margin-left: 0px; padding-left: 30px; } And the html <dl class="about"> <dt>Current topics and titles </dt> <dd>Fulfilling community residents&rsquo; appetite for information about popular cult...

Make Div overlay ENTIRE page (not just viewport)??

Hello, So I have a problem that I think is quite common but I have yet to find a good solution for. I want to make an overlay div cover the ENTIRE page... NOT just the viewport. I don't understand why this is so hard to do... I've tried setting body, html heights to 100% etc but that isn't working. Here is what I have so far: <html>...

css layout - break down

So I am trying to get the effect of having two frames inside a 750px wide frame. .news {width: 750px;} .news1 {width:550px;} .news2 {width:200px;} Very simple css at this stage. The html/php: <div class="news"> <div class="format"><a href='newspiece.php?news=<?echo $id?>'><?echo "$subject\n";?></a></div> ...

XHTML - How can I make a piece of text drop on to a new line or wrap without putting a space in it?

I have a small space in which I would like to put writing. Problem is, if a long word is inputted, it flows off the side because there is no space. I could do overflow:hidden, but this isn't what I am looking for. Ideally I would like the word to drop to a new line with a '-' before it. The word is on a line of its own to begin with so...

IE7 maddeningly displaying columns under a div instead of over it

If you view this page in IE7: http://65.60.10.2/~marionin/ , why are the light purple headers ("Spotlights", "Serendipity Projects", "Marion Institute Blog") hiding underneath the dark purple band? I have firebugged till my fingers hurt, but I can't figure it out. The column divs are written after the block div, so they should display o...

tbody td borders not scrolling with content in tbody overflow:auto;

I am unable to get the borders of these td's to follow their rows as I scroll through this overflow:auto; . Any ideas on a fix? Note: Setting table-layout:fixed or making rows display:block isn't an option as the rows will lose their fluidity.. You can see the issue in the latest Firefox, so I assume it's messed up elsewhere. Here is...

How do I apply the browser height to a CSS class?

You can read your browser dimensions with jQuerys $document.height or with simple JS via height: window.innerHeight || document.body.clientHeight. But how do I apply the value to a CSS class? ...

How to make CSS URL background images show up in localhost?

Hi guys, I just installed xampp and I brought one of my live sites into it to be able to start working from localhost. So to view my site, I navigate to localhost/example.com I noticed some issues with images when on my html, I had for example: <img src="/new_pictures/05.jpg" alt="Central Market"/> Image wouldn't show up, but then I...

Link to CSS file from CSS file

Is it possible call another external CSS file from external CSS file? ...

Visual Studio 2008 IDE freezes/crashes when opening .aspx file with css included

Visual Studio (SP1) runs fine until I try and view .aspx source files with the lines <style type="text/css"> </stlye> anywhere in them, upon which it freezes (i.e is totally unresponsive) and I have to use the task manager to shut it down. I have read a lot of questions about Visual Studio 2008 crashing on viewing some sourc...

sIFR 3 randomly placing text on a single line in FF3.6

Hello, sIFR 3 is behaving strangely in Firefox. The actual sIFR flash element is set within a box that is 412px wide. In IE, Chrome, Safari, etc., the with of the Flash element is a consistent 412px; however, in Firefox, the Flash element is briefly as wide as the Body element, before correcting itself. When the page finishes loading,...