stylesheet

CSS being ignored in IE & FFox but not Chrome

Hi, i am styling a navigation menu using the following css. I have found that it works perfectly in chrome but absolutely none of the css is beign applied in firefox or IE. Is there something obvious that i havent done or have done here? <style type="text/css"> #ddm { margin: 0; padding: 0; } #d...

BlackBerry specific stylesheet

We want to use the same page to service the desktop, iPhone, and BlackBerry, so we have to come up with a way for the different devices to load different stylesheets. So, is there a way to specify a stylesheet to run on BlackBerry? For example, iPhone's use the media attribute: <link media="only screen and (max-device-width: 320px)" h...

CSS:Hover's problem with text that is hidden because of overflow:hidden ?

In my application i have lots of divs containing text. All divs have overflow set to hidden so that the user does not see the text if the container is not large enough to contain the writing. If the user wants to see the hidden text they are supposed to mouse over the "box". The box then expands and shows the text. Sounds simple enough,...

PHP Function to split a combined CSS attribute/value to several attributes

Basically, I want this: h2 { font: bold 36px/2em "Times New Roman" } To this: h2 { font-size: 36px; font-weight: bold; line-height: 2em; font-family: "Times New Roman" } And other variations, of course. Does anyone know of a function that does this so I don't have to code it myself? :) ...

Visual Studio tells me a css class is not defined when clearly it is

Hi, I'm using Visual Studio 2008 making an ASP.NET page. In this page I'm using a stylesheet at styles/basic.css When I hit F5 to load the page it loads perfectly fine. Inside the style sheet I have defined a .basic style class along with other classes. But when I use body class="basic", Visual Studio tells me "The class or CssClass va...

How does this print stylesheet work?

I really like how http://www.honorshaven.com/ looks printed (to pdf). I've looked through the source to try to figure out how they did it (my navigation always turns into ugly bullet lists on print...) -- and I'm at a loss. Anyone know? Any help would be awesome! Thanks, Martin [Edit] I'm familiar with print stylesheets -- but aren'...

ASP.NET Theme stylesheet rendering

When a page with theme is rendered, the stylesheets link tags in the given theme are rendered right before the closing head tag. Does anyone know of a way to change that? Is there a way that I could have those tags be placed right after the opening head tag? I know it can be down with jquery by just selecting all the link tags and pla...

Android layout with sqare buttons

I want to make a layout similar to this one: Four square buttons on the screen - each of those using half of the screen with/screen height (whichever is smaler). Independent of screen size/resolution. I already tried to achieve this by using a LinearLayoutbut the buttons are ending up using the correct width, but still having the hei...

Base Href vs. .htaccess RewriteBase

Normally I use <base href="http://domain.com/" /><!--[if ie]></base><![endif]--> I haven't tried much with RewriteBase, I normally get confused and keep changing it till it works. Which method would be best, I obviously find the best solution because the links stay the same so that no links are broken most of the time when attachin...

XML/XSL nub: Is it possible to create a COMPOSITE XML/XSLT document?

I have just recently (like 2 days) started using XSLT documents with XML. I understand the basics and am able to generate a formatted document using an .XML document that references a separate .XSLT document. My question, as in the subject, is "Is it possible to create a SINGLE, composite document that contains both the XML data and XS...

Regex - Match text between 2 characters

I need a regex pattern(s) that will match on words before a colon and also values between 2 characters. Here's the example, I have a string: str='`width: 1070px; padding: 0px 10px 0px 10px; height: auto; margin:0px auto 0px auto;`' from a stylesheet, I need one array to store the property only (the text before a colon), (prptyArra...

CSS Sprites Bottom repeating

Can you bottom repeat a sprite background where I want the sprite to be set of the background on the bottom of the div. I have this: .statistics-wrap { margin-top: 10px; background: url(../img/bg-sprite.png) repeat-x 0 -306px bottom; overflow: hidden; border: 1px #BEE4EA solid; border-radius: 5px; -moz-border-rad...

Linking a CSS with a ASP.NET Custom Control

I'm developing a custom control which is a composition of tables and buttons. I also have a CSS that defines the styles for these. The Control is under the class CompositeControl, under namespace MyControls and the definition of the class is in a class file CompositeControl.cs and the dll file generated is named MyControls.dll Also, the...

Adding stylesheet in head tag of a fancybox

Hello! I have a stylesheet with some styles that I want to apply inside a fancybox, too. But I can't find a way to add the <link> attribute in the <head> block of the iframe. Any ideas? Thanks! ...

When printing style information is lost?

I've set the media to all but when printing a page and clicking "preview" much of the style information is missing. Any idea why? ...

Is it Possible to change the Default Margins of Browser through JavaScript???

I want to change the default margins of Browser through JavaScript because I want to print the displayed document on page but the margins are different on different browser??? plz help me to change default margins of browser. if you have any solution tell me. ...

Changing stylesheet href with jQuery doesn't quite work

I'm creating a web app that user will be accessing in the field, so they'd like to be able to manually toggle the styles from light to dark depending on the ambient lighting. I'm using jQuery. I added an id attribute to my stylesheet, then created a button using the toggle() event, in which I change the href attribute to the CSS file I ...

Rails, my stylesheet disappears magically?

Ok I just started a rails project...when i initially load the page it's styled as it's supposed to be. Without changing any code when I refresh the stylesheet disappears. I figured maybe it was a html/css error, but then if i close my browser and reopen it the page shows up fine again. So it's not that. I'm in dev mode so I don't thi...

Can not load external spreadsheet in flex builder

Hi! I imported two projects in Flex Builder 3 (A and B). Those two projects A and B are in the same folder and in mxml file which is located in A/src I have <mx:Style source="../../B/b/assets/b.css" /> this relative path is correct, but Flex Builder keeps showing message: "Problem finding external stylesheet: ../../B/b/assets/b.css"...

In CSS, can "#footer #caption" coexist with "#content #caption"?

I was going to "nest" the CSS ids like this #content #caption { color: teal } ... #footer #caption { margin: 2em 1em } because that's the way SASS (a CSS generator) can do nesting for... but then in one HTML document, we cannot have two ids with the same name, isn't that true, so the above nesting won't work or won't work well. (e...