css

CSS out of control

Are there any utilities that will crawl a site and determine which css rules are in use and which are not? We have a large site and a huge CSS file (--don't blame me I just got here). And, I think much of it is not being used however I'm afraid to strip stuff out just in case. The file is confusing and difficult to manage and I think...

IE7 body width increases with floated element

In IE7 standards mode rendering, a strange thing happens with the following body: <body> <div style="border: 1px solid black;"> <span style="float: right; font-style: italic;">some text to the right</span> other text to the left </div> </body> The body width doubles, even though the <div> width looks correct. There is just...

Dynamic rows of divs (boxes) using CSS?

Hi there, I have a variable number of boxes and I'd like to display as many as I can without forcing the viewer to scroll horizontally, there should also be a certain space in between them. This means that the boxes will have to move to the next or previous "row" if the browser is resized. How do I achieve this using divs and CSS? Tha...

3D perspective text on a webpage

How can I achieve 3D text transformations in perspective using Javascript/CSS. Solutions using external libraries of Javascript/CSS are also possible ...

problem in css with internet explorer 7

I am building a new website. The html and css is verified but i have trouble displaying the correct layout for ie7. You can view a screenshot of the problem here: http://img.skitch.com/20100911-x2qpb93hd7i2gjkynhabxwqpyu.jpg How do i prevent ie7 from putting the extra space between the breadcrumbs links? The links should be like this:...

How does browser choose media type to filter CSS links?

A page on my site has a link to a stylesheet for media="print". <link rel="stylesheet" href=".../print.css" type="text/css" media="print" /> Most browsers correctly ignore this link when rendering for a screen, but IE7 includes the file and processes the style rules, rendering the page inappropriately for a screen display. How doe...

CSS and templates

Hi, I had a quick question concerning css and a template i'm using. I have two fields in my CSS: .content { padding:10px; width: 100% text-align:justify; font: 9pt/14pt 'Lucida Grande', Verdana, Helvetica, sans-serif; } #errorExplanation { width: 400px; border: 2px solid red; padding: 7px; padding-bottom: 12px; margin-bott...

CSS Percentage Bars

I am trying to make a SIMPLE Css percent bar. OK go to http://htmledit.squarefree.com/ and copy/paste this in it: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style> #perc { width:...

Apply Css for elements even after postback-jquery

Hello Guys, I have many hrefs(with dynamic Ids) in my asp.net app that have the same CssClass=MyClass. I want these button to be hidden with a condition. I used the .ready $(document).ready(function() { if(condition) $('.MyClass').css("display","none"); }); the problem is docuement.ready doesn't execut when there is a poctba...

css js menu help

I'm designing a menu for a photography site. What I would like is a menu that on hover does two things: pops up an individual image in line with the menu <li>, and also displays just below the menu some text that stays centered in the page, i.e. has position:fixed;. I've taken care of the first requirement, but I'm stuck as to how to a...

css in IE after ajax returns value

Hello, I use ajax to return html code and append it to a div layer: $(div_layer).append(ajax_value); ex: <br/> <div id="divName"><br/> --value appears here--<br/> </div > I can successfully append the code to the div layer, but the css attributes are lost ONLY in IE. eg: border-color, border-width. help me out, thanks edit: ...

How can add Amazon Wish List to my site? (PHP, jquery, CSS)

Hiya, I want to add an Amazon Books Wish List to my site and I want to style it with CSS. So, how can I do it? Should I use PHP or can I use Jquery? Do you know PHP tutorials for it or any Jquery plug in? Thanks ...

css class within another class as a property

I'm wanting to use properties from other css classes without having to rewrite the code...I'm not too savvy with css so please forgive me for the simple question. Is it possible to do something like this or similar to it in css? .class_a { background:red; } .class_b{ .class_a; } ...

CSS trouble with IE7

I am designing a website and it looks good in basically all browsers except IE7, where I have a problem I haven't been able to correct. I have a menu in HTML like this: <div id="nav"> <ul> <li id="cMenu"><a id="cart" href="#">Home</a></li> <li id="pMenu"><a id="promos" href="#">Promos</a></li> ...

How do I have a transparent div with NON transparent text?

I want to have a div that is semi opaque filled with text that is not opaque at all. My problem is that when I make the div semi opaque the text is semi opaque too. Is there way to have my text appear as it normally would? Below is what I'm using now: .opac { opacity:.2; background-color:black; } ...

How do you get a css box to extend the entire width of the browser window?

For example, if you look at Facebook, they have a short blue bar on top that extends the entire width of the browser. I thought about using width:100%; but I know that it needs to have a parent element to be able to do that. ...

CSS: clear all formatting of anchor tag

I have a site where the page is formatted to be 800px wide with an image taking up the top 40 pixels. I wrapped the image with an anchor tag so that clicking on the image takes user to home page. When I wrap the image with an anchor tag, the image seems to shift to the right a little bit which throws of the alignment! Is there a way I c...

In css, I'm having trouble with the "after-the-link-has-been-clicked" action.

So I know how to control what happens when you hover over a link, and after you have pressed a link. But my question is how do you change a link after you have clicked another link? For example, you click "Profile" on Facebook. The "profile" box is highlighted after you've clicked it. Then you click "home" and the "profile" box goes bac...

CSS Slide to new width

Let's say by using jQuery I can set the width of a DIV doing this: $('#perc_in').width("14%"); then I make it do this: $('#perc_in').width("57%"); Is there a way I can make it so instead of going from 14 to 57 I can make it SLIDE the progress bar from 14 to 57 percent? It's a simple div around another div with the percent being the...

Maintain div size (relative to screen) despite browser zoom level

Hello all, I'm creating a bookmarklet for my iPhone which will add a scrolling menu to the upper-left corner of the screen. The problem I've run into is that if I visit a site which can be zoomed in, when I zoom in my "floating" div becomes larger as I zoom in the page. Is there a way so that my div will be .2 inches wide (measurable wi...