LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 749 users online 221812 members 1553 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
PrintingFreak
Cool Things: shooting big weapons, blowing up ...
Mood: Annoyed
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
6 online / 34 MPM
Fresh Topics
  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic

IE6 CSS width issue
Replies: 6Last Post Mar. 13, 2008 5:38am by allsmiles
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( allsmiles )


Enlightened One

Patron
Reply
I'm designing a website for a financial endeavour of mine, which will only be used by people who browse with IE. I don't know if it works right in IE7, since I don't have it and my dad doesn't want me to install it on this machine (I'm not complaining), but in IE6, when I put in width: 100%; for one of the divs, there's a gap at the right hand side of it, 20px wide (regardless of resolution, it seems). The design works perfectly in Fx.

Here's the source code for the design:

Code:
<html>

<head>

<title>Parts Stock Locator</title>

<style type="text/css">

.delivery {
float: right;
width: 200px;
height: 35px;
background-color: #fff;
text-family: verdana;
font-size: 10px;
border-left: solid 2px #000;
border-bottom: solid 2px #000;
text-align: center;

}

.top {

height: 200px;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
background-color: #99f;
border-bottom: solid 3px #00f;
text-align: center;
font-family: verdana;
font-size: 12px;

}

a {
color: #777;
text-decoration: underline;

}

a:hover {
color: #ccc;
text-decoration: none;
text-weight: bold;

}

a:visited {
color: #777;
text-decoration: underline;

}

.search {

height: 25px;
font-size: 18px;
font-family: verdana;
font-color: #000;
border: solid 1px #000;

}

td, th, {

font-family: verdana;
font-size: 12px;

}

.content {

font-family: verdana;
font-size: 12px;
width: 95%;
text-align: center;

}


</style>

</head>

<body>

<div class="top">

<div class="delivery">
<br />
<a href="http://www.royalmail.com/portal/rm/jump2?catId=400028&mediaId=400031";>Recommended Delivery Service</a>
</div>

<p><img src="title.png" alt="Parts Stock Locator" style="position: relative; left: 100px;" /></p>

<p>### hits since 25/02/08</p>

<p>Input part number, partial part number, or description</p>

<p><form action="search.php" method="post"><input type="text" name="part" maxlength="20" class="search" />      <input type="submit" name="search" value="search" /></form></p>

</div>

<div class="content">

 

</div>

</body>

</html>

I'm not that experienced with CSS based layouts, so I don't really have much hope of diagnosing the problem. Can you see what needs changing?

-------
When they leave me, they're all smiles.
When they leave you, they're in tears.


7:06 am on Mar. 12, 2008 | Joined: Aug. 2007 | Days Active: 565
Join to learn more about allsmiles England, United Kingdom | Male | Posts: 8,808 | Points: 15,784
LiveWire Humor
marshmellowman


wewerepromisedjetpacks

Patron
Support Leader
Tech Support Leader
Reply
It looks fine, but as a side note, it's better to have the CSS in an external stylesheet than embedding it in every single page. It's much easier to change the global settings this way. (ie, reference style.css)

IE6 has been long known to have such problems, and there are many things that are legitimate CSS codes that fuck up IE.

-------
and victorious in war shall be made glorious in peace.


7:10 am on Mar. 12, 2008 | Joined: Feb. 2007 | Days Active: 756
Join to learn more about marshmellowman England, United Kingdom | Straight Male | Posts: 24,325 | Points: 43,048
( allsmiles )


Enlightened One

Patron
Reply
There are only 2 pages on the site, and they're not likely to ever change once finalised.

Thing is, I'm only fucking around with the layout 'cos some grumpy tech guy at the company I'm doing this for, who's pissed off cos my hosting's steep, is basically shooting down everything I do. A gap on the right is not likely to be accepted :(

-------
When they leave me, they're all smiles.
When they leave you, they're in tears.


7:27 am on Mar. 12, 2008 | Joined: Aug. 2007 | Days Active: 565
Join to learn more about allsmiles England, United Kingdom | Male | Posts: 8,808 | Points: 15,784
Boss302

Connoisseur

Patron
Reply
IE8 is coming out soon (in beta atm) so you'll have another set of problems to sort out!

-------
....These go to 11.

7:39 am on Mar. 12, 2008 | Joined: Aug. 2007 | Days Active: 216
Join to learn more about Boss302 England, United Kingdom | Straight Male | Posts: 5,045 | Points: 7,856
( allsmiles )


Enlightened One

Patron
Reply
Didn't IE8 pass the Acid2 test though?

Post edited at 8:00 am on Mar. 12, 2008 by allsmiles

-------
When they leave me, they're all smiles.
When they leave you, they're in tears.


7:59 am on Mar. 12, 2008 | Joined: Aug. 2007 | Days Active: 565
Join to learn more about allsmiles England, United Kingdom | Male | Posts: 8,808 | Points: 15,784
PiXiE


24.24.1.1358

Patron
Reply
html, body {
margin:0px;
padding:0px;
}

9:40 pm on Mar. 12, 2008 | Joined: July 2002 | Days Active: 1,663
Join to learn more about PiXiE Alberta, Canada | Straight Female | Posts: 4,837 | Points: 34,868
( allsmiles )


Enlightened One

Patron
Reply
That fixed it. Thank you very much!

-------
When they leave me, they're all smiles.
When they leave you, they're in tears.

5:38 am on Mar. 13, 2008 | Joined: Aug. 2007 | Days Active: 565
Join to learn more about allsmiles England, United Kingdom | Male | Posts: 8,808 | Points: 15,784
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Web Design & Search Engine Optimization / Viewing Topic