css

Inline images in CSS with background-image: url ()

I'm trying to load a gif file within my .css file, like this: li.box_entry { background-image: url(data:image/gif;base64,R0lGODlhDAANANUAAPv7+/r6+vn5+ff39/b29vX19fPz8/Dw8O/v7+7u7u3t7ezs7Onp6ejo6Ofn5+bm5uTk5OPj4+Hh4eDg4N/f397e3tzc3Nvb29ra2tnZ2dbW1tXV1dPT09LS0tHR0c3NzcjIyMfHx8bGxsXFxby8vLe3t7W1tbOzs62traurq6mpqaioqKenp6ampqWlpaOjo6KioqG...

IE 7 negative margin error

With this code the "TEXT" doesn't show up in IE 7. I think its behind the input? Giving it a zindex dosn't help, and i can't use position:relative because it messes other stuff up. any ideas of how to fix? <!DOCTYPE html> <input/><span style='margin-left:-50px;'>TEXT</span> ...

CSS - "style" property not overriding class

I have a DIV container that is a CSS class defined on the top level. That container also has a style that has a couple elements that should override the main class elements. As far as I understand, this is what it should be doing, but it seems to ignore everything I am putting in there. /* In the CSS file. */ div.ItemContainer { pos...

Remove caret from HTML text input

I'm trying to create a hidden textfield for an iphone specific site, basically I've taken a textfield, hidden all of its elements and show an image instead, when clicked this pops up an onscreen keyboard, as well as submitting when the form loses focus. What I can't get rid of is the text caret. It flashes at me as if I'm some loser who...

CSS File is Not Loading Properly

I set up a secure version of my CSS server which points to a different folder which contains a version of the stylesheet with secure images in it, the robots.txt and .htaccess files are exactly the same (the only other files in the directory). The non-secure CSS file loads fine in the normal non-secure website, however it will not load i...

Internet Explorer 8 in Windows XP

I have witnessed how Internet Explorer 8 (IE8) is in Windows XP and how it is in Windows Vista/7. Quite strangely, IE8 seems to be acting like IE7 for certain aspects of CSS and JavaScript (maybe for other elements too). Am I the one who is seeing things? Otherwise, if this is true why is this happening and what are the major differences...

CSS and HTML coding suggestion for a background image header

Hello guys, I'm very new at CSS and i want to put a header on to my new web site. A simple one, only an image who goes on the top background. I really don't know how to do it with out much coding. So, this is what i have, and this is what i want. And at the end of this question is the code of the actual page. Any ideas? Thanks so munch...

Target IE in the CSS code

Hi, I know how to target IE, but that's only in HTML (which means I need to create another CSS file for IE bugs). Is their anyway, how I can implement the fixes in the same CSS file. This mean I target IE with CSS code? ...

how to have fixed with list or anchor element in html?

I have website with list and anchor links. I want to have the anchor length is fixed so that it will not come to next line. When I move the mouse over,the remaining text should be displayed and when the over leave out of the link, it should be again set back to normal one line. I want the one like the green color. ...

Which Javascript solution(Not .htc) can really make Antialiased round corner in IE7 and 8?

Which JavaScript solution (Not .htc) can really make Anti aliased round corner in IE7 and 8 like CSS3 gives in supported browsers? I tried many http://www.ruzee.com/blog/ruzeeborders/ http://blue-anvil.com/archives/anti-aliased-rounded-corners-with-jquery/ http://www.curvycorners.net/ All are claiming to give anti aliased corner bu...

What does auto do in margin:0 auto?

What is auto do in margin:0 auto;? I cant seem to exactly understand what auto does. I know it sometimes has an effect of centering objects. That's about it. Thanks. ...

Why is a Button's text not subject to css style rules on the container containing the button?

Let's say i have the following ASP.NET/CSS code: <div style="color:Red;"> some text...<asp:Button runat="server" ID = "Button1" Text = "ABC" /> </div> The "some text" part would be red but the text of the button is not red. Why? If I place a label in place of the button, the label's text would be red. ...

The white-space property between blocks

Is the CSS 'white-space' propert supposed to be able to affect the whitespace between block elements? For example, in the document used as an example in "Whitespace in the DOM" as follows, there is whitespace between the </h1> and the <p>: <!-- My document --> <html> <head> <title>My Document</title> </head> <body> <h1>Header</h1> ...

Image of progress bar (Full) with fade in background

I want to show progress bar just lightbox image shows and it should display 100 % progress bar status when i'm posting data from one page to other. How can i do that? ...

Chrome Uncaught SyntaxError: Unexpected token <

Trying to use cdata to store css but chrome throws "Uncaught SyntaxError: Unexpected token <" for the first line below: var default_style = <![CDATA[ .TTContent table td.Mission img { max-height: 15px;} ]]>.toXMLString(); Does anyone knows why? P.s. the css is much longer in reality Many thanks, ...

css: border on an image, not outside it

When you apply a border: 5px solid #000; on an image, the border appears around / outside the image. Is there a way of placing the border "on" the image so that it masks the 5 outer pixels of the image? ...

How can I create many divs on on top of the other using CSS/jQuery?

Basically, I want many(>25) divs to be displayed one on top of the other so that only one can be seen at a time. I have the jQuery UI draggable implemented, so once a div is dragged away, the next div is shown. What CSS do I need to make such a stack of divs? jQuery is also available if required. Thanks! ...

What type of XHTML and CSS validations errors are safe to avoid?

What type of XHTML and CSS validations errors can be avoided? which would not harmful today and tomorrow (if we do not touch xhtml, css )? I mean errors which will not create any problem on future upgrade of browser, css and html version? they just show as an error today? I think one thing I know is Vendor extensions. Are there any oth...

how to set image width and height 100% from css?

my code- background:url(images/menu_edu.jpg) no-repeat; but but only half of image is getting displayed. ...

`color: transparent` is not working in IE

color: transparent is working in mozilla, but it's not working in IE. what else I can use? I want to sent font color to transparent. ...