css

Automagically Minify CSS and Javascript on Upload

Hey guys, Does anyone know of a good way to automatically run certain file types through a processing script on upload? I'm trying to accomplish automatically minifying CSS and Javascript when I upload them to the server, keeping a nice, human-readable version on the local side while keeping a minified one on the server. I'm currently u...

How to find the proper offsets for CSS sprites?

I have a sprite image set as the background of an element on my page, but how do I find the proper offsets so I can actually see it on the screen? ...

Make Input Box Have Safari's Blue Outline

Hi Everyone: I am wondering if there is some way to make an box have the Safari's light highlight all of the time. I would assume there would be a way to replicate this, however I have not found one. Thanks for any help! ...

AJAX message under google ads

Hi everyone, i'm building a ASP.NET application using C#. On my website, I also use AJAX toolkit from Microsoft. When error message are diplayed, they appear under the google ads. It's very anoying because before adding the ads, everything was working good. In fact, it work perfectly but I'm searching for a way (probably CSS) to put th...

Div positioning

I have a div tag which has table header on it and the rest of the table content is in another div. I need to make the position fixed when vertical scrollbar is scrolled so that the table header will be seen on vertical scrolling.Upto this point its not a problem because using div position:fixed,it will work. But the problem is during hor...

How to fix Absolute Positioning In IE8?

In every browser I've used, except ie8, an absolutely positioned element can be positioned according to the closest parent with relative positioning. The below code shows two divs inside a table. The top div has position: relative, however, the nested, absolutely positioned element does not respect its boundaries (in ie8, it gets positi...

GM_addStyle not working

Hi I am trying to make this very simple script to replace the header on google: // ==UserScript== // @name Hell yeah // @description HELL YEAH // @include http://www.google.* // ==/UserScript== GM_addStyle("div #logo {background-image: url('http://img220.imageshack.us/img220/5676/1251559315224.jpg') !important}"); ...

rails form_for styling

Is there a way to add styling to rails form_for and make it display inline? ...

Son of Suckerfish Menu problem IE6

My menu dropdowns are 'hiding' behind content that appear below the dropdowns. The menu is working fine in Firefox, Opera, Safari, IE8, but not in IE6. An example of this is on this page - http://marketplace.prettypollution.com/news-events , if you hover over 'Contact Us' in the top menu it is hidden behind the below content. Any ide...

HTML Print Header & Footer

Is it possible to print HTML pages with custom headers & footers on each printed page? I'd like to add the word "UNCLASSIFIED" in red, Arial, size 16pt to the top and bottom of every printed page, regardless of the content. To clarrify, if the document was printed onto 5 pages, each page should have the custom header & footer. Does...

CSS background position a:hover rollover, changing other elements?

Hi, You know when you use the CSS background-position property for rollovers, right? Roll over element 1, the a:hover property changes background to position-x/y Roll over element 2, the a:hover property changes background to position-x/y And so forth. What I need to achieve this time, is: (lets say its 4 list elements we have) Roll...

HTML/CSS Best way rounded corners

Possible Duplicate: What is the best way to create rounded corners using CSS? What is the best way to make rounded corners in div-containers! I need a solution which works in every browser .. what i have tried is jquery corner plugin (don't work in Chrome) CSS tags (don't work in IE) Is the only working solution (for every b...

CSS: remove separator on the last and first item

Hi, I have a menu div which has a dark background. Inside it, I have several menu item divs with 1px margins on the right and the left. This way I've got separators between them. Obviously these appear on the very left and very right side of the menu which I don't want. Is there a way to accomplish this without inserting 1-pixel divs as...

Can I specify maxlength in css?

Can I replace the maxlength attribute with something in CSS? <input type='text' id="phone_extension" maxlength="4" /> ...

My master page has empty space on the bottom and right side. Can I "center" my master page and set a background image?

Here's how it looks like right now: my screenshot Is there a way for me to center the area that has content, and place a repeating background image so the site doesn't look so empty? ...

Aligning decimal points in HTML

I have a table containing decimal numbers in one column. I'm looking to align them in a manner similar to a word processor's "decimal tab" feature, so that all the points sit on a vertical line. I have two possible solutions at the moment but I'm hoping for something better... Solution 1: Split the numbers within the HTML, e.g. <td><...

With XHTML strict the border affects the background color

Let's say I have the following minimalistic HTML code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" > <body style="background-color:silver; padding:0px; margin:0px;"> <div style="background-color:Lime;"> <h1>Title</h1> ...

CSS height problem .

hello , i have a problem with a css in a joomla module , the site is www.bacauacum.ro , the module that has this problem is "TITLURILE ZILEI" the module from the bottom of the page,it allways gets the value "height : 30px" i looked in all the css and there is no such value . ...

I need to match a font from a designer to something similar for web

I don't know if this is an Illustrator spec or where exactly, but a designer gave me this spec for a font: Helvetica Neue (T1), 35 thin, 20 pt, off/ 454545, on/70a63a There are other similar ones for different areas of the page, but if you can tell me how to match this one using CSS, hopefully I can figure out the rest. Thanks!...

How to add a part of an image to a Button in HTML

Hi, I've a big image and I'd like to add a part of that image to a button. I've a css class that defines the left and top where the little part of the whole image I want is located. Let's say .image { left: -20; top: -200px; } I've defined another class that describes the place where I want to put this part of the image. .image1...