css

Is it a bad idea to use php in css documents?

I have created css page called style.php and included this the top: <?php header("Content-type: text/css"); ?> Does this make you cringe. Is it a terrible idea? I am doing this because I have created a CMS that allows the admin to control colors on pages (so the style.php script queries the database and grabs the hex values). Any th...

Tab or accordion based page - how is it done in the server side?

I have a web page with tabs or accordion, generated with YUI or jquery or another javascript+css framework. Say an HTML form is processed in one tab. What should the server do? Send back all the tabs, with the tab that submitted the form having the results and all the other tabs unmodified? Or what? ...

Making HTML content expand to fill the window

I have an HTML page divided vertically into Header Body Footer The body in turn is divided horizontally into A large DIV on the left surrounded by scrollbars, displaying a portion of a diagram A form on the right The header and footer are fixed-height. The body should expand vertically to fill the portion of the window not occup...

When to stop caring about a browser

The question is simple really, when is it time to finally pull the plug on a browser version and just not care about supporting it any more? As can probably be expected this is in regards to IE6 specifically right now. A site I'm working on right now has a mostly-finished design that needs to be integrated but most of the back-end functi...

CSS - Content gets pushed to the left only in IE 7

My website passes both validation for both XHTML and CSS. It looks fine in Firefox, Chrome, Safari, Opera, even IE 6 (alas, not IE 5.5 but who cares?). Why then, would everything be pushed all the way to the left in IE 7? Any suggestions would be much appreciated. ...

IE6 ignoring active link CSS style

The CSS active link style is being correctly applied in IE7, FF, and Safari but is not applied IE6. .side_nav a.active { color:#FFFFFF; background-color:#9F1F63; } Interestingly the background color (background-color:#9F1F63;) is being applied in IE6 but not the font color (color:#FFFFFF;) Any ideas on why this is happening ...

How To make a Form and Div have a max width of child elements.

I was wondering How To make a Form and Div have a max width of child elements. Eg in this example both the form and the outerDiv stretch the full width of the page. I would like the form and outerDiv to have a width of 200px. This becomes a problem when I have this page in an iframe, because the width of the page is larger than the ifr...

Centering two transparent columns using CSS

So, right to the point, here's what I want (minus the poor quality)... http://www.hbperspective.com/alt3/site.jpg And here's what I've got... http://www.hbperspective.com/alt3/ I'm trying to get those two transparent columns to be centered as they are in the pic. With this CSS layout I'm having a heck of a time figuring out how to d...

Internal vs External CSS

Hi, What's the pro's and con's on Internal vs External CSS, thinking of speed, requests, caching etc..? Personally I'm not sure if internal css on dynamic pages will cache..? ...

What are some CSS bugs in IE?

I've found some references to bugs or issues in IE's interpretation of CSS, but the information seems rather scattered. I'd like to have a pointer to a comprehensive overview, if such an overview exists. edit: it's already something that Microsoft is willing to list IE's CSS problems (thanks mouviciel->sanchothefat), but they're not goi...

jQuery Accordion with Superfish

I am trying to get a vertical Superfish menu to display correctly inside of a jQuery Accordion widget but am running into some rendering issues such as the child elements only rendering inside the accordion div (they don't spill out and therefore are cut off), the superfish menus pushing the accordion elements down and causing alignment ...

which of is better between css or master pages for web page layout & design?

of course please tell me that css is better and faster or master pages for web layout and graphic design . ...

How to do this using css

I'm currently working on a web application and I need to display some fields in a tabular way. For example: ------------------------------------------------------ First Name: John Last Name: Smith Age: 26 ------------------------------------------------------ Town: Madrid Country: Canada Colour: Blue -----------------------...

ASP.NET: TreeView CurrentNodeStyle missing?

Is there a CurrentNodeStyle set of properties in the ASP.NET version of the TreeView, or am I just blind? I want to set the CssClass for whichever node the user is currently on, and I'm not seeing a way to do this. Googling reveals there was such a beast in classic ASP, but I'm trying to use ASP.NET 3. ...

what is the purpose of a css link placed like this style.css?23409823098

Duplicate of what does do in a css link I've seen a few sites who list a stylesheet with parameters in it. does anyone know what its called and what purpose they serve? ex: href="fonts.css?1169659562000" ...

Horiz CSS menu - text shifting on bold hover

Hi there, I created a horizontal CSS menu using HTML lists. i.e <ul id="navigation"> <li id="youarehere"><a href="#">Home</a></li> <li><a href="#">Home</a></li> <li><a href="#">About Us</a></li> </ul> ect... Everything works as it should, expect when you hover over the links. You see, I created a bold hover state for the links, an...

What's better in CSS: div.something or just .something

In CSS, when setting a style on a div (for example) is there any benefit in including the 'div' other than to give it more precision for matching. Is it faster for the browser to render perhaps? ie Is: div.something { font-size: 1em; } better than .something { font-size: 1em; } for any other reason than to narrow it down to only d...

How do I (by default) style different types of labels differently?

In my forms, I want to make HTML labels bold in general, but not bold when they are labelling radio buttons and checkboxes. How can I do that in a CSS that can be imported and works by default, without requiring local overrides of the styling? Example Radio Label (should not be bold) <label for="banana"> <input type="radio" name="bana...

Styling select borders in IE changes the arrow button

Our website has border styles on select boxes and text inputs to make them look like they would in the windows XP style on windows. This basically gives them a thin blue border rather than the grey bevelled one in windows classic. I have made no attept to change the style on the little down arrow button next to the selects. The CSS looks...

Looking for these specific website themes

I'm looking to skin my web app according to different themes. So I guess I'm looking for some CSS designs? It would be of great help if I could get any links to themes that resemble: Desert/sandstone/Middle East Green/environment/climate change Corporate Plain white background (Mac-ish look) Pastel/funky/marketing EDIT: I need the d...