css

CSS Text effects for Internet Explorer Question?

Is there a way I can add a border or text shadow to text in Internet Explorer? ...

Injected CSS from Code-Behind into ASP.NET WebForm

Hello, I have a situation where my H3 tags are styled in an external CSS file, but the color attribute is going to dynamically change based on a database value. I would like to inject some CSS into my master page from code-behind to set the color of the H3 tag globally instead of having to specify it on each tag. How can I do this? Th...

How to set ASP dropdownlist to read only with css or javascript?

I have to set dropdownlost to read only. I can set enabled =false. But I cannot set font color to regular dropdown text. It will show like blur. The samething I did textbox.readonly=false. There we can see font same as regular text, no change. The same way I want read only for dropdownlist. Is there any way we can do with CSS or javasc...

me.com is coded with javascript+css+html only?

I wonder if me.com is coded with javascript+css+html only? No RIA language like Flash, Java right? ...

Is it possible to style up an <input type="submit"> in a form with no classes or ids?

I'm trying to style up a form within the Wishlist Member plugin in Wordpress and there isn't a template where I can physically go into and add classes, id's, etc. So I was wondering if there was a way to style up an <input type="submit"> with no class or id without affecting the <input type="text"> fields using javascript maybe. Thanks. ...

Column sometimes moves in IE8

I have a site that uses 3 columns, in IE8 sometimes on a page load the left side bar jumps up into the navigation. If the page is reloaded it goes back the place it should be. Nothing else shifts, its just that left column. The issues doesn't happen on every page or every time a page is loaded. It seems completely random and I can only...

IE8 bottom:0 in position:absolute behaves like position:fixed

I have a DIV that must always stay on bottom/left of the page, something like a footer menu. div#bottom_menu { position: absolute; z-index: 1; left: 0; bottom: 0; width: 90%; } My page has min-height defined and when the user shrinks it below that it gets scroll bars. The problem is when it happens, in IE8 the div moves up t...

Applying CSS to image tag to show only bottom half

I have an image tag that is displaying an image of 18 pixels in width and 36 pixels in height. However, I only want to display the bottom 18 x 18 pixels of the image, and not the full 18 x 36 pixels. How do I go about applying a style to the tag in order to accomplish this? EDIT: Thanks all for your help! It was a combination of a coup...

Creating accessible tooltips for a web site

Is there a best practice for making tooltip type functionality accessible to people with accessibility needs? I am interested in jquery tooltip and have found a few others but I am thinking twice before spending anytime as I am concerned about accessibility compliance of these. ...

CSS: How do you keep this Div to the right of a float?

In my code below, case #1 works correctly. The "advice-area" div stays to the right of the "rating-box". However, case #2 does not work when the text extends beyond one line. This causes the "advice-area" div to move below the "rating-box" What is the best way to fix this? Thanks. <html> <head> <style type="text/css"> .wrapper ...

How to remove CSS spaghetti in legacy web app?

After working on several large web applications, and seeing gigantic style sheets with no clear structure, I'd really love to know if people have found ways to keep their css clean for large and complicated web apps. How do you move from a legacy, mess of css to cleaned up, nicely cascading, DRY stylesheets? The app I'm currently work...

Why doesn't my page display correctly in Internet Explorer?

Edit: There is a somewhat strange solution to this question. Check my answer posted below I am working on this site and it works perfectly... Or at least, it did work perfectly until earlier today. I don't know what I did, I made some minor changes to the code but no changes to the front page. The site is tested to work correctly in F...

Center aligning floated elements

Hi, I'm trying to align the links in http://www.jsfiddle.net/uAXkM/ to the center. The links are floated to the left, and the wrapper is positioned absolute. I've tried all combinations of margin:auto and text-align:center, to no success. How can I achieve this without changing the markup or the positioning? ...

How is the HTML5 cross-browser story going to be any different than CSS/JS?

When CSS and JS got popular, the big frustration was that every browser implemented it differently and only a limited set of "cool stuff" worked across browsers, or worked differently. Now we're making HTML5 popular, so it seems like we're about to embark on the CSS/JS incompatibility journey all over again, but now in a 3D, animated, a...

Which mobile browsers versions/devices versions/OS versions currently capable for HTML 5, CSS3 and jquery?

Which mobile browsers versions/devices versions/OS versions currently capable for HTML 5, CSS3 and jquery? ...

problem with href

I have a problem with my anchor tag. For example I have: <a href="#">abc</a> Then output is abc (#).Whatever i write inside href attribute comes along with a tag. Dont know what's wrong with the code. Please help me out, thanks. ...

How to show just text inside an INPUT attribute? HTML

I do want to show just text inside an INPUT. So, How can I do it? <p><input type="image" src="" border="0" name="submit" alt="Donate"></p> Basically, It works good but Safari and Chrome does not display the alt="Donate. Instead, it shows an empty square. Edited: I have used this code from bobince: <input type="submit" class="unbu...

Escaping JavaScript[/CSS] between <script>[/<style>] tags: Insights on a potentially broken status quo

I'm a webdeveloper with an emphasis on server-side programming. What little I've tinkered with JavaScript, I've done with externally referenced files or event handlers, and the barest minimum of an initialising function call between <script> tags. As such it came as a surprise to me about a week ago that the data between <script> tags i...

nested css rules

Some time ago I saw an example of a css file, where the css rules/selectors where specified in a nested way, e.g. something like this: div.a { color: red; div.b { font-weight: bold; } } I'm not sure where I saw that (probably in a SO question), or whether it was exactly as shown above. My questions: Is the above CSS correct...

How to make a Xul button bigger using css as it get focus?

I saw at this page that I can use CSS to change my button as it get focused. But trying with the following code in the CSS didn't work: button:focus { style.width='200px'; } Any idea why it isn't working? ...