css

Sending email client compatible email

We have emails that can be branded in a varierty of different ways but still contain the same content. Therefore, I need to be able to send HTML emails that contain CSS styling but are still compatible with the majority of email clients. I've come across the following websites that detail the compatibility of email clients: Guide to CS...

How can I join background images?

I have three images that I would like to join in a widget I'm creating in Html. I just want to give the round effect on the corners. These are the three images: I have the middle one repeating in my css so that it fills up the space between the two edges. .widgetMainLeft { background: url('/Content/Images/Title_Bar_Left.png') n...

How to make a login frame display in the center of the window when the button is clicked?

Just like what happens when you click Sign in with OpenID on http://twitterfeed.com/, I want my login frame displays in the center of the window, and only when some link is clicked. But now I have difficult to center a div, I have written CSS as following but it doesn't work #logindiv { position: relative; overflow: auto; m...

How to set the style/class of an HTML element in MVC?

In a Master page, I have this.... <ul id="productList"> <li id="product_a" class="active"> <a href="">Product A</a> </li> <li id="product_b"> <a href="">Product B</a> </li> <li id="product_c"> <a href="">Product C</a> </li> </ul> I need to change the class of the selected list item... When '...

CSS Conflict

Hello all Im trying to do a simple :focus effect for all my INPUT elements, like so: INPUT:focus { border-color: orange; } This works great, until I add this bit of CSS to the style sheet: .form_container .col2 INPUT { border: 2px solid #CCCCCC; margin:0px 0px 0px 0px; font-family:arial; font-size:14px; padding:3px; } Now once I...

Tables in IE do not have border when border = 0 in a css reset?

In my css file, I have a reset where I am setting the border:0. This causes all tables in IE, not firefox to have no border. Even if I set the border inline on the table, it still does not show in IE. Does anyone know the solution to this? Part of the rest: table, img { border:0; } <table border="1"> <tr> <td></td> </tr> </table>...

Could someone recommend a good book on designing web UI with css?

Not javascript related,but only with pure css. I really need a book to teach me how to beautify the web UI badly! ...

Stretch div width to match another

I have an html layout like the following: <div id="header"></div> <div id="body"></div> <div id="footer"></div> If the header is a fixed width, how can I force it to stretch to match the width of the body - for cases where the body is wider than the header. ...

Image exists but does not appear as background

I have this in my CSS file: body {style.css (line 3) background:#CDF8FF url(images/final_bg.jpg) no-repeat scroll center top; clear:both; font-family:Arial,Helvetica,sans-serif; margin:0; padding:0; } That images exists, as I can get to it via the browser, but it is never displayed to me! What is wrong? I use firebug to see if its th...

CSS - How to remove whitespace between anchored images

I have two anchored images on top of each other, separated with a line break. I want the images to sit directly on top of each other, but in Firefox there is a gap between the images. It works in IE7. The only way I have been able to fix this is by changing the line-height (which I don't want to do). <a href="image.jpg"> <img heigh...

IE7 DIV does not stretch with content inside it

Hello, I'm having an issue with IE7. In IE6, Firefox and other browsers, the DIV containing the content stretches vertically depending on how much content is in it. In IE7 however, the DIV only stretches to the absolute minimum height of the page then it stops... it even cuts off the content inside of it. I cannot figure out for the li...

CSS word wrapping not respecting padding.

Is there was way to make wrapped text respect the padding property of a cell? ...

Problem with CSS Sticky Footer implementation

Im having some problems getting the Sticky Footer to work on my site. If the content is smaller than the window the footer should stay at the bottom of the window and the dead space should be filled up with a div. I think the CSS Sticky Footer does this, but I cant get the "push div" to work push the content all the way down. As you can ...

Stretch image as background

I need image to stretch as background of page. It doesn't matter if page will not scale well, what ever screen resolution may be, whole image has to be visible on screen. I found some solutions on Google, but it either didn't work in Firefox2 or IE6 or both, and I need those two too. I hate when people don't upgrade their software, but I...

Combining styles

I have long wanted to be able to include one style class within another. For example med-font { font-size:12px; } #message a { style: med-font; color: blue; ... } /* lots of other styles, some of which use med-font */ Obviously this is a stripped down example, but the key point is that all those anchor tags within #message s...

Overlapping Columns with IE7

I'm really having a hard time with IE7 as it is making part of my page fluid where it should be fixed. Works fine in every other browser but IE. Here is the link... . If you shrink the window you will see how the page gets all skewed. Here is the css used to control the 2 columns, left_body being the left content and right_body the...

CSS Problem in FireFox 3.5

Hi every one! I am developing an ASP.NET project with C#, and I wrote a page named gs.aspx which just writes resources like JS and CSS to the response according to the request and i's query strings. I have the header like this: <head runat="server"> <title></title> <asp:Literal runat="server" ID="litHead" EnableViewState="false...

CSS (-moz-border-radius-topright: 7px;) does not work in google chrome

I want to use rounded border in my site. So, I use css rounded border property like this -moz-border-radius-topright: 7px; It work in firefox well . But in google chrome , it does not work . Why ? ...

firefox (Gecko) conditional style sheet

Hello world, today I'm trying to optimize my website for a better rendering in firefox! my problems are the text-shadow and font-weight properties ... I would like to set custom values only for firefox (my website is mac only compatible so I don't need IE compatibility) but I don't wont to use separate style sheet for only these two prop...

JQuery - Copy dimensions and absolute position of element

I'm trying to copy a element's dimensions and the position(relative to the document) onto another element. Ex: var SelectedElement = $("div#MyTargetElement"); // The CopiedButEmpty element is a div with absolute position that is meant to hover/float above the selected element. $("div#CopiedButEmpty").css("width", SelectedElement...