css

Force container to stay in exact positions

Hello, I am trying to make it so the container on this page http://s72956.gridserver.com/dev/toggle.html# will always stay at a certain width no matter how you resize the page is there any easy way of doing this. ...

automatically add » to li's

I want to automatically add the html character &raquo; to the left of each li element How I do that? So I want to type the html <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul> and it displays >> item 1 >> item 2 >> item 3 ...

CSSFriendly Problem just after publish to web server

Hi every one! I created a website and used css frienfly adapters for Menu, TreeView and GridView, all was correct, but after publishing it to my great web server, the menus and treeviews didn't load and there is just some bullets! Please help me, what should I do? you can see my work: http://jds.cot.ir left side I have a menu which d...

Add div above textbox without changing position of textbox

I need to add some HTML content (images, labels, etc.) above a table cell that contains a text box. There are going to be at least 10 rows per page with 8 columns in each row. All 8 columns contain a text box. I've already put together some jQuery that will show and hide this new content area above the table cell, but the CSS is not c...

Placing content above an <OBJECT>

I've tried setting the zIndex for my OBJECT and it seems that I cannot place any content above it. Is this an IE issue? Any workarounds? I'm trying to display a lightbox type dialog directly above the OBJECT. ...

css set maximum table row height despite content

I'm trying to create a table with each cell having a fixed width but absolute but varying heights. For example in the first column the first row would be 20px, the second 65px, the third 20px. In the second column the first row would be 20px, the second 45px, the third 40px. And in the last column, the first row would be 20px and the sec...

IE CSS Position Wrong, any ideas why?

I cannot figure out why in the following code (a larger page with all unnecessary portions deleted) the Textarea is way too far to the right in IE 6 or 7. It should be right next to the text as it is in Firefox. Any ideas? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html><head> <me...

z-index with two relative positioned elements IE7

Hi, I have two elements. One is a searchbox that has to be positioned relatively. The other is an image I would like to overlap part of the search box and it has to be positioned relatively as well. No matter what I set the z-index to, IE7 won't overlap the image. It goes underneath the searchbox. It overlaps and works in Firefox thou...

CSS problem in IE6

I've been around and around in circles with this one, almost finished my web page and all good in most browsers except the inevitable IE6! I've been doing some research and found out there is a problem with padding and margin in CSS, and have tried to no avail. Is there someone out there who might be able to help? www.theclubnetwork.co....

Internet Explorer z-index bug?

How do you overlap an element over another element that is positioned relatively in Internet Explorer? Z-index doesn't work, it always appears behind the relatively positioned element. ...

How can I scale an entire web page with CSS?

Using Firefox, you can enlarge an entire web page by simply pressing CTRL +. What this does is proportionally enlarge the entire web page (fonts, images, etc). How can I replicate the same functionality using simply CSS? Is there something like page-size: 150% (which would increase the entire page portions by x%?) ...

Position DIV above Input Box without changing position of Input Box

I'd like to add a DIV above an input box (textbox) without changing the rendered position of the textbox. This DIV will be shown/hid when the textbox has focus or not... What is the proper CSS formatting for this DIV to show directly above the textbox without causing the textbox to shift down? <td> <div class="someclass">i...

Overriding Tag level external CSS of a Flex control

I have an external CSS file which defines the style for the Button tag. Button {fontSize 11; blah...} I'm trying to override this style for the buttons of a ToggleButtonBar: <mx:ToggleButtonBar dataProvider="{pm.portalNavigation}" fontSize="16" /> Unfortunately, this doesn't seem to work. The fontSize stays at 11. How can I over...

CSS Clip and Absolute Positioning

I'm using clip to create thumbnails for a gallery. Unfortunately, clip can only be used when an element is absolutely positioned. Applied equally to each img, this of course makes them all sit on each other while using one CSS style, something like this. .Thumbnails { position: absolute; height: 105px; clip: rect(50px 218px...

How can I tell if a CSS file has loaded that I've included via JavaScript?

I have some jQuery that loads a new stylesheet like so $('head').append('<link rel="stylesheet" type="text/css" href="' + config.basePath + config.stylesheetsPath + 'sections/' + name + '.css" media="screen" class="new site-specific" />'); I am then attempting to get some info from that CSS file immediately after. It generally will no...

How can I position a label inside its textfield?

I have many textfields that show instruction text within the textbox (how the default value would look). On focus the color of the text becomes lighter, but doesn't go away until text is entered. When text is erased, the label returns. It's pretty slick. A default value doesn't cut it, because these go away onfocus. I have it working, b...

How do I create a two-column snaking layout in ASP.NET MVC?

I have about a hundred short-text data items (this number can vary substantially) that I would like to put in a page and have the browser manage that into three columns within a surrounding div, arranged with the items going down and then across, like this: A F L B G M C H N D I O E K ... Is there a way t...

HTML\CSS Coupon Script

Does anyone know how to create a coupon (printable is even better) with HTML & CSS? Forgive the horribly simple question, I don't do much of any web development :) Thanks in advance. EDIT: EDIT: Seth posted his answer again, which I accepted, thus I removed the answer from here (it was just a copy of his original deleted post). ...

Merged CSS Fails In Firefox

In order to dramatically reduce the number of HTTP requests on my ASP.NET MVC website, I am programmatically merging the files. Essentially, I have an MVC URL http://localhost/Optimisation/JavaScript/ that calls my controller. The controller reads the javascript files in a certain order, merges them into a single output and renders it o...

Difference between outline and border

Hi Guys, Does anybody know of any difference between 'border' and 'outline' properties in CSS? If there is no difference, then why are there two properties for the same thing? ...