css

HTML & CSS question: Element between two absolute-positioned elements needs to resize correctly

#header { position: absolute; top: 0%; height: 24px; } #body { position: absolute; top: 24px; bottom: 20%; overflow: auto; } #footer { position: absolute; bottom: 0px; height: 17.2%; min-height: 80px; overflow: auto; } My problem is that when I compress the browser window, the middle element (the 'body') starts to slip into...

How do I remove the border theme colors from safari text inputs in CSS?

Check out http://www.tonyamoyal.com/rounded_corners2.html with firefox and safari. I am trying to hack a rounded corner text input solution but safari displays a "theme color" when you click on the text input. Any thoughts on how to remove this in CSS? Maybe I don't know the name of this attribute because I cannot find anything search...

Aligning the baseline of a YUI button with the baseline of the text next to it

I'd like to display a YUI button next to some text, but the baseline of the YUI button text does not line up with the baseline of the text next to it. The font family and size is identical for both the button text and the text next to it. If I use a plain HTML button the text baselines correctly line up. Here's a live example of the pr...

Recommendations for places where I can get good css designs/ web 2.0ish buttons, tables, etc...

Im designing a website, and often I need to present information in a nice table, or need a nice button, etc... I need recommendations for any websites which have a large collection of these elements which I could just use, instead of designing my own. Thanks!! ...

Horizontal Menu problem in IE6

My text menu items are not vertically aligning correctly in IE6 in my horizontal menu. Example - http://blacktownworkersgroup.worldsecuresystems.com/bwc09/home They seem to be ok in Firefox 3 and IE7. I've made the background red for each item to make it more obvious. Any ideas? ...

How do I submit suggestions to the CSS spec?

Recently I've wanted to do a number of things using CSS only to find that the best solution is to use Javascript. This has made me wonder, does anyone here know how to go about making development suggestions to be implemented into CSS 3 spec? It would be great if we could get some sort of feature request/vote based system going that the...

FF displaying unwanted border

i have a div element that is appearing fine in Chrome but Firefox for some reason has decided to put a border around it. let me share the CSS here: #cpanel { width: 320px; height: 75px; position: absolute; //left: 28%; //top: 32%; z-index: 9996; //visibility: hidden; display:none; } .box { z-index:99...

Why does 'clear:left' also clears right?

I've been struggling to get CSS floating to work (in my head). Note the following example: <style type="text/css"> div.container { width:500px; } div.left { float:left; clear:left; } div.right { float:right; } </style> <div class="container"> <div class="left">leftdata 1</div...

CSS box "flow"/stacking (see screenshot)

I'm having a hard time making boxes flow as illustrated in the attached screenshot. Seeing as I'm not even quite sure what this technique is called, it's making googling hard. The boxes with be generated using jQuery's AJAX implementation if that makes a difference. UPDATE: Thanks Jonathan, that's close but it's apparent I haven't des...

Pre-Loading Images

Is there a way to pre-load images just using html/css? ...

How to get browser width using javascript code?

I am trying to write a javascript function to get the current browser width. I found this one: javascript:alert(document.body.offsetWidth); But its problem that it fail if the body has width 100% There is any other better function or a work around? ...

Control.ClientID with CSS

Is it possible to use css with controls that generate ClientID and not regular ID? I now I can use cssClass, but i want to know if it's possilbe to use id's: #DivParrentId #LAbelControlId { padding:100px; color:Red; } ...

How to make an item "draggable" using html?

Is there a way to just use html to make an item draggable? (not just classifying an element as draggable) ...

how to add event for all elements except which have a certain class?

I want to add mouse over event on all elements on the page except which has class "no_inspect", i want to add this event after loading all page elements, i tried to write it like that: $('*:not(.no_inspect)').mouseover(MouseOverEvent); but its not working, seams something missed. UPDATE Not working means: The event is attaching to...

How can I make <li> elements flow left-to-right instead of top-to-bottom?

Here are my <li> elements. I want them to appear left-to-right instead of top-to-bottom. <div class="nav"> <ul> <li><a href="test">test</a></li> <li><a href="test">test</a></li> <li><a href="test">test</a></li> <li><a href="test">test</a></li> <li><a href="test">test</a></li> </ul> </div> How can I do this? ED...

how to implement a drag-and-drop div from scratch?

It should be a combination of CSS and Javascript, The main jobs to do should be: Make it on top of all other elements (which property to specity?) Catch the event it is clicked (which event to listen to?) Move the div as mouse moves. but what are the details? ...

Are Visual Studio web projects Web Standard friendly?

I'm struggling with a few in-house developers that are creating some web apps in VS 2008 using C#. It appears that the native tools and components in VS 2008 are not being nice about creating Web Standard code. For example, the navigation component creates items in its own table structure. Is there anyway to make a web project from ...

about background attribute in css

background:#777777 none repeat scroll 0 0; the 5 attributes it includes are background-color,background-image,background-repeat,background-attachment and background-position. But I don't understand what background-attachment and background-position mean? Can someone give an explanation? EDIT:are background-repeat,background-attachmen...

why everything gone with display:block ?

This is OK: <html> <head> <title>tabs</title> <style> li { display:inline; margin:0 90px; background:#777777 none repeat scroll 0 0; } li a { padding:6px 12px; color:#FFFFFF; text-decoration:none; font-weight:bold; } </style> </head> <body> <div id="tabs"> <div class="nav"> <ul> <li><a href=...

when to leave space ,when not in CSS?

This is ok(without space): li.highlight{ background:#FF9900 none repeat scroll 0 0; } This will not work(with space): li .highlight{ background:#FF9900 none repeat scroll 0 0; } Why? ...