css

Css background image for li

I have the following .toggle_container .block ul { margin: 0 0 7px 0; } .toggle_container .block li { list-style-type:none; color: #232120; font-size: 1.2em; line-height:1.2em; padding: 4px 0px 2px 23px; background: url(images/red-bullet.gif)no-repeat; background-position: 3% 45%; } The trouble is the ima...

Overriding inline CSS styles in IE7

I have a html tag with inline CSS style like: <body><div style="position:absolute;top:100px;"></body> and I want to override this inline position property. So, I wrote a CSS rule like this: body > div[style]{position:relative !important;top:0px !important;} The above code works in Firefox. But in IE7 it does not work. Am I missing an...

100% height div and overflow:auto

Hello. I have got a vertical menu on the left side of the screen, and i want to take 100% height of the resolution, but if the div(of the menu) needs more, i want to appear scroll. My question: I have got one div with height:100% and overflow auto. I need have the scroll only on that div, but this div must be 100% of the resolution of th...

Manual background div slideshow

Hello, I need to make a css background image fade slideshow. For several reasons, i cannot have a physical div in my html. It's the body with a class called -home- that has a current background. There will be 4 pictures for the slideshow, no more, no less, so that doesn't have to dynamic. I already have the following jquery: <script t...

Make child visible outside an overflow:hidden parent

In CSS the overflow:hidden is set on parent containers in order to allow it to expand with the height of their floating children. But it also has another interesting feature when combined with margin: auto... If PREVIOUS sibling is a floating element, it will actually appear juxtapose to it. That is if the sibling is float:left then the ...

IE7 text-align not working

Hi Guys, I have a simple horizontal UL LI main nav which I am trying to align to the center of the page. Text-align, which works in the other browsers is working but this does not work in IE7. Is there something I am missing about this bug in IE7? Thanks! ...

how to call browser based css?

we can get the browser name from javascript but is there any way to change css accordingly.I mean some classes of css file because I dont want to link another css file , I want to write styles on if chrome a img { margin:0; } //if mozila a img { margin:5px; } ...

CSS : Using a Table when I shouldn't.

I was trying to create a CSS only badge with lots of details. The contents were like this. **General Details:** ID no(6digit number) Date of Joining Group Sub Group **Personal Details** Name Date of Birth Gender **Referrer Details** Name of Referrer URI and so on I tried using using <ul> <li> and then styling that, then i tried the ...

Within same line, have a center element and right-most element

I had posted the question once to http://doctype.com/within-same-line-have-center-element-right-most-element, but didn't get a good answer for that. I posted it here and hopefully will get a good feedback ;) <div style="float:right"> right most, same line as hello world and will not push hello world! </div> <div style="text-align:c...

What's the best practice about dealing with corners on a fixed-height element ?

Hi, Here is my problem. I have to round corners on a <a href=""></a> but without using CSS3 properties because my code is supposed to be cross-browser compliant (IE6 and earlier, Safari 3 and earlier). What I managed to do is : <span> <a href="">My link</a> </span> Giving my span a background image (5px width) left align and my...

How to stretch background image of a table cell with CSS?

How can I stretch background image of a table cell with CSS? I have Googled without results. When you set background image of a cell and the background size is smaller than the cell, then it will be repeated. How can I force this background to stretch the entire table cell instead? ...

How can I remove comments on-fly from my static CSS files?

I'm using facelets, and I have a number of CSS files in webapp/styles/blueprint/*.css. They contain comments which I don't want to become visible to end-users. How can I remove them on-fly? ...

CSS - table not using body font size even though I havent set the table font size explicitly..

Hey, I have a problem whereby I have set the body font-size to 11px, but tables display font at 16px. I have no idea whats causing this - I have been over the CSS and the output (source when browsing to the page) time and time again. Setting table font-size to 11px explicitly has the desired effect, but I shouldnt need to set it anywher...

When should point (pt) font size be used?

Possible Duplicate: Are there any practical reasons to use em instead of pt font size units? I always used either 'em' or 'px' unit for font sizes. Wondering when it is a good idea to use point(pt) unit? ...

Add string to CSS code with Javascript

I need to add a string before CSS elements with Javascript code. An example of the original code: h1 { background: red; } .class #id { color: black; } I want Javascript to filter it like this: .myclass h1 { background: red; } .myclass .class #id { color: black; } Let's say the CSS-code is a Javascript string called st...

jQuery Pager Problem

I see a lot of people asking questions and I have looked for my question but they are all much more advanced than I need. I would like to know simply if its possible to change the automatically generated pager numbers to specific text that I would like. For example titles of each article cycling? Title 1 Title 2 Title 3 etc... I dont...

Recaptcha fixed image size

Why is recaptcha image fixed in size 300x57 ? Even when customizing the div where the image is injected, the width and height of the div are overridden and set to 300x57. Of course the image can be re-sized after it's rendered, but why there are no options to generate the image the size developers would like it to be. http://code.google...

HTML list navigation problem with an uneven design.

Our designer created a navigation that visually looks like this: Navigation Bar The HTML structure of which is: <ul> <li class="first">Home</li> <li>Schools</li> <li>Scores</li> <li>Sports</li> <li>Blogs</li> <li>Podcasts</li> <li class="last">Forums</li> </ul> I can't figure out if there's a way to make ...

CSS Positioning - Top and Right

I'm creating a div which has to have a close button in the upper right corner just like in the image The first image was made in photoshop. I'm trying to do the same but with CSS. "Fechar" is the close button (in Portuguese). What is the better way to properly position it without workarounds, with clean CSS and Web Standards? Here is ...

How to Replace or Remove HTML Editor styles in the Sharepoint 2010 Ribbon

I want to replace the HTML Editor styles in the HTML Style dropdown on the editor ribbon with styles of my own creation. According to this MSDN article http://msdn.microsoft.com/en-gb/library/ms551040.aspx as soon as I start putting classes that begin with the pattern ms-rteCustom-XXXX(XXXX being a custom name) into CSS that's loaded in ...