stylesheet

css modification

I am using the following css. I want a back back ground for whole site. But if i do <body bgcolor="black" > in the body tag of html i lost some images.My css is as follows. Can anyone modify it so that i can have a black background *{ margin:0px; padding:0px; } img{border:0px} html{ height:100%; background-image:url(images/top_bg.jpg)...

Cannot get float left/right to work for a div in Internet Explorer.

Here is the html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <link rel="stylesheet" type="text/css" href="styles.css"/> <title></title> </head> <body> <div align="center"> <div id="main-header-content" class="content"> <div class="left"> Lorem ipsum do...

css - hidden div has large white space in its place in IE

Hi, Any ideas how I get rid of white space on my IE browser. It is caused by a hidden div. When I remove the div the white space goes. Works fine in FF. Here is the DIV: <div class="hidden" id="popup"> <div> <H1 class="center" id="popupTitle"></H2><br/><br/><br/> <div style="position:relative; display:inline;"> <p id="popu...

@import or <link> for importing stylesheets?

Which method is best for importing multiple stylesheets? I assume, as with most things regarding the web, the answer is 'it depends', but are there downsides of using one or the other? ...

My conditional css stylesheets for IE work when I test the pages locally but are not recognized once I upload the pages to my website

Hi, I'm using the IE recognized conditional statement to use an IE specific stylesheet for IE browsers: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Touringhouse</title> <link type="text/css" rel="st...

Qt stylesheets: QHeaderView draws header text in bold when view data is selected

I'm trying to style a QTableView with Qt Stylesheets. Everything works OK, except that all the table header texts (column headers) are drawn as bold text whenever data in the table view is selected. I've tried things like this: QTableView::section { font-weight: 400; } QTableView::section:selected { font-weight: 400; } QHeader...

How to work out which widget to target with Qt stylesheets

Hi, I'm attempting to use Qt stylesheets to style a reasonably complex UI. So far things are going reasonably well, but I'm running into a difficulty: How can I work out what widget name I should be targeting for a particular part of a UI? For example, if I want to change the font size in the cells of a QTableView, do I write a style t...

Get values from original css file using jQuery

Hi all, I am running in to this situation. Basically my site has many templates of css and users can change the color dynamically using jQuery. Now, the way I did it was to use jQuery to modify the css property directly by selecting the classes. However, if users switch to a different template (also dynamically), I insert .css file in ...

Get contents of link tag with javascript?

Has anyone had luck getting the contents of a stylesheet loaded with a tag? ...

Is it a bad idea to let users add their own stylesheet?

I'm new at php and I'm trying to figure out of this is a bad idea or a security risk. I have a table of data that I provide to a user, it has a default stylesheet that it loads, but if the user wants to include their own, I've made it so they can just point to their stylesheet instead: http://www.mysite.com/info.php?css=http://www.some...

Margin while printing html page

Hello everyone. I am using a separate style-sheet for printing. Is it possible to set right and left margin in the style-sheet which set the print margin (i.e. margin on paper). Thanks. ...

IE improperly rendering dynamic content until a stylesheet change is made

I have a table of data which is generated dynamically with Javascript. Every few minutes the page refreshes the data by firing off an Ajax request, getting the data back from the server, and replacing the data in the table. This is pretty standard, and the table ends up looking like this: This works just fine if I generate the data ...

Flex External Stylesheet Conventions

I know that there are questions regarding this same topic, but for HTML. What are some good conventions in regards to using external stylesheets in a Flex app.? How would you break up the stylesheets (names of stylesheets and what they include)? ...

Properly Sizing of Google Map in a DIV in percentage

Hi all, I am facing an interesting problem while working on Google Map Page. Actually I want the Map DIV will cover the 70% of Width leaving 30% for My Menus and 60% of Height leaving 40% for my website banner. When I assigned the div height and width in % the map will not render properly instead it either shrinks to top or left depend...

Counter measure if/when external CSS file is not loaded when the page did.

Due to network or some other reasons, some sites do not have their css files loaded and you will see unformatted/un-layout-ed ugly page. It happened to pages I did before also. Kind of beyond control from a developer/design point of view. I'm thinking of something like this place at the top of the page and obvious: /*.... header and s...

How to style alternating rows in asp.net mvc

I am using a <% foreach ...%> loop to list a collection of items on my website. I want to add a different background color for the style of alternating rows in my list. I have found a way to do this but I am not satisfied with it as it seems like a hack. Here is what I have done to solve it so far: <table> <% int counter = 0; ...

Are Qt's stylesheets really handling _dynamic_ properties?

Is Qt's dynamic properties really so dynamic with stylesheets? I have the basic example from stylesheets and dynamic properties: /*stylesheet:*/ *[field_mandatory="true"] { background-color: "yellow";} And I have this happening at runtime somewhere in the code: /*code:*/ myWidget->setProperty("field_mandatory", field->isFilled() ); ...

CSS! Do you have to repeat same properties for each link state? (link, visited, hover...etc) ?

Is it necessary or bad practice to repeat properties that aren't changing in each link type? Like this: a:link {display: block; width: 50px;} a:visited {display: block; width: 50px; color: #000;} a:hover {display: block; width: 50px; color: #FFF} a:active {display: block; width: 50px; color: #FFF} Does display block need to be in eac...

Apply StyleSheet to Textile with Redcloth?

How do you apply an external stylesheet to a textile document with Ruby's Redcloth, so that I can convert it to HTML and it will apply the styles? I understand how to apply styles individually to parts of text, but how to I define a whole style (say text with font-size 20, color red, alignment x, font-family y, etc.), and apply it to al...

Assign css to specific element

I have an <li> element on the page that I want to look a certain way. Changing the css affects all the <li> elements. here is the element I want to change <li>Outside Job<span class="toggle"<input type="checkbox" /></span></li> here is my css for the <ul><li> ul li { /*font: normal 17px Helvetica;*/ color: #a9a9a9; border...