Top "Stylesheet" questions

DO NOT USE THIS TAG.

Can you use if/else conditions in CSS?

I would like to use conditions in my CSS. The idea is that I have a variable that I replace …

css stylesheet conditional-statements
How to use HTML to print header and footer on every printed page of a document?

Is it possible to print HTML pages with custom headers and footers on each printed page? I'd like to add …

css header printing stylesheet footer
How can I make a TextArea 100% width without overflowing when padding is present in CSS?

I have the following CSS and HTML snippet being rendered. Is the problem is that the text area ends up …

html css stylesheet
How to dynamically create CSS class in JavaScript and apply?

I need to create a CSS stylesheet class dynamically in JavaScript and assign it to some HTML elements like - …

javascript css stylesheet
Margin while printing html page

I am using a separate style-sheet for printing. Is it possible to set right and left margin in the style-sheet …

html css printing stylesheet
HTML not loading CSS file

I am completely stumped as to why this doesn't work. It seems the HTML file can't load the CSS for …

css html stylesheet
In which order do CSS stylesheets override?

In an HTML header, I've got this: <head> <title>Title</title> <link href="…

css overriding stylesheet
Styling Password Fields in CSS

I'm experiencing a minor issue with fonts in my stylesheet. This is my CSS: body { ... font: normal 62.5% "Lucida Sans Unicode",…

css forms input fonts stylesheet
How can I disable inherited css styles?

So I am creating a container with rounded corners using the following method: div.rounded { background: #CFFEB6 url('tr.gif') …

html css stylesheet
Removing newline after <h1> tags?

I am having a problem with removing linebreaks after the <h1> tag, as everytime it prints, it adds …

html css header styles stylesheet