css

Why does internet explorer push my content below the sidebar?

HI everyone, I have a page which displays just fine, in Firefox and Chrome. However, it has the content pushed past the bottom of the sidebar (as if I had a clear) in Internet Explorer 8 (I haven't tested any other IE versions). Does anyone know how to fix this? The page is located here Thanks, Lemiant ...

jQuery/CSS auto width assignment not working propely on IE, Safari, Chrome

Here it goes: I have a fixed DIV containing an IMG. The DIV is fixed to the window borders (top, bottom, left. The right edge "floats free") so it adjusts to any window resizing. The IMG has height:100% so it uses all of the parent's height and width:auto to keep the aspect ratio. My goal is that when window resizing, my parent DIV need...

CSS: How to change spacing between radio button and it's text?

How do I change the spacing between radio button and it's text? I have the following HTML: <input type="radio" name="beds" value="1" />1+ <input type="radio" name="beds" value="2" />2+ Which produces something like this graphic: o 1+ o 2+ How do I change the spacing between the radio button and the "1+" text? I'd like the text to ...

CSS - vertically center an image within a floated div

Hi everyone, I've decided to throw in the towel on this problem and need some help :). As per title trying to vertically align an image wrapped in an "a" tag in the center of a floated fixed height div. Done a lot of googling for solutions and the closet I can get is below when the div is not floated (however it needs to be). Any i...

CSS - Can I resize the background image by changing the width and height?

Hello all, Given the following CSS rule, #block1 { text-indent: -1000em; background: transparent url(../images/xxx.png) no-repeat scroll center center; width: 100px; height: 50px; display: inline-block; } Assume the image xxx.png is of dimension 100px by 50px. If I need to make this image displayed on #block1 looks smaller, can ...

Evenly space a gallery of images

I have a gallery of images, each of which have the same width and height, say 10px. I want them spaced so that there are 5 on a row and they are each 5px apart, on all sides. The container div has 5px padding. There are multiple rows! My problem is that if I give each image a left margin of 5px then either: a) The container div is size...

CSS - Why I see the dash-line when I click a Link with Firefox

Hello all, <div class="b1 b2" id="b1-wrap"> <h1 class="header"> <a class="header" href="a.php">Test<span id="001">(XXX)</span></a></h1> </div> #b1-wrap { cursor:pointer; height:107px; left:573px; // this seems that the dash-line is caused by the margin on the left. position:absolute; top:17px; width:310px; } When the user c...

Odd CSS positioning error in FireFox and IE

For some reason, I have some problem with my CSS positioning on a social networking sharing tray on my site.. The even odder aspect of the problem is that it's only showing up in IE and FF.. I've tried playing with the CSS properties in FireBugg, but to no avail. The link is here: http://www.marioplanet.com/index.asp The look in FF a...

How to set fieldset border from legend bottom?

I have fieldset and legend. fieldset border is coming in the middle of the legend like below But I want border like below Border line should come below legend. I am using below css. .fieldSet { width: 97%; margin-left: 10px; border-color: #003366; } .legendStyle { border-style:none; background-color: #003366;...

CSS and JavaScript problem.

Sorry for my English. A friend of mine asked me to help him to build a HTML page. I just know a little bit of CSS, and know absolutely nothing about JavaScript or jQuery. All the code I wrote was from Google. You can get what I really want in the picture, and I just finish the first step, the rollover animation works now, you can downl...

Styling the Highlighting in CSS

Is it possible to change the background color and foreground color (or text color) of the highlighted portion in a HTML page? In another words, customize the hightlighting of our Webpage ...

Why input[type=text] is not working in IE

Hello, I have some style like this: <style type="text/css"> input[type=text]{ width:300px; } </style> the above code works in chrome and firefox. Why not in IE? I am using this code in Reporting services at the end of Reports.aspx file. ...

programmatically disable scrolling?

Hi there. Using jquery I would like to disable scrolling (of the body) my idea is to a: set body{ overflow: hidden;} b: capture current scrollTop();/scrollLeft() c: bind to the body scroll event, set scrollTop/scrollLeft to the captured value. is there a better way? Melodramatically = [auto spell check fail :/] Update Please see my...

Problem with padding a table row

<html> <head> <title>Table Row Padding Issue</title> <style type="text/css"> tr { padding: 20px; } </style> </head> <body> <table> <tbody> <tr> <td> <h2>Lorem Ipsum</h2> ...

CSS div 100% layout

Hello all; What is the most elegant way to achieve something like that with divs for IE7 and above and the other browsers(chrome,firefox,...)? Thank you ...

Replace with JQuery

Hi Im trying to replace some html with Jquery, this is what I got so far. $(".old").html($(".new").html()); This almost work. Only that the .new is being copied, instead of replacing. I wan't to Cut/Paste instead of Copy/Paste ...

CSS Layout Help - Stretch div to bottom of page

I'm trying to create a layout with a 'header' area which contains a logo and some links, and then a content area which needs to extend to the bottom of the page. This is where I'm getting stuck. I've surrounded the header and content with a container div which has a height of 100%, this works fine. But I can't then get the content div t...

asp-net MVC2: <div> tag - "float: left;" - Problem?!

Problem with <div> tags Works fine: Text "Whatever" is in column 1, followd by a radiobutton: Works also fine (no radio button with text): The next cell AFTER the text "Whatever" should be displayed in column 1 of the next row - instead directly under the text. Background: The table structure is made by my html helper. He genera...

Javascript seems to be moving form text down about 5 pixels

Hello, I am using a form entry field that seems to be effected by some Javascript that I am using on it. For whatever reason, the text entered into the field is about 5 pixels too low. These seems to be happening because of the Javascript. The problem with the text being 5 pixels too low is that lower-case letters like "g", "j", etc....

CSS Problem: Replacement for z-index?

Hi Guys, Is there any replacement for z-index? My code is too long, thus I will briefly explain my code in text form: My website layout is (from top to bottom): Banner Menu Bar Content Footer In 1 of the menus, I added a SlideDown (using jquery) effect when rollover to display to submenus. I have 5 images, right below the menu ba...