Printer Friendly Version
Email this thread to a friend
|
Featured Web Site Template |
|
Reflects user activity within the last 5 minutes
|
|
| Member |
Message |
boris317
Joined: Apr 21, 2005
# Posts: 3
|
Posted: 2005-Apr-21 21:24
Hello this is my first post. Im working on a site layout and i use php to manage my rectangles. I am having a problem getting them lined up correctly in IE. It looks perfect in firefox. mySite.
The css was thrown in there to try and make it work in IE. Only thing it helped with was getting rid of the body margins and getting it to be flush top and bottom. With or without the css the gaps still appear. Its strange cuz i dont have this problem on another site im working one. Detriment
Im very new to this whole w3 standard stuff and its a bit frustrating Any help would be greatly appreciated.
|
 |
lizardz
Joined: Nov 12, 2004
# Posts: 1394
|
Posted: 2005-Apr-21 22:04
This is a really old hack, but it works:
change this:
<td width ="330" height ="85" rowspan ="2">
<img src ="/images/header2.gif"> </td>
to this:
<td width ="330" height ="85" rowspan ="2"><img src ="/images/header2.gif"></td>
What's happening is that IE is taking the linebreak after <img> and treating it as a space, thus creating the space.
However, be warned, if you switch to using a doctype, I'd recommend HTML 4.01 transitional:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
this may change the rendering. Currently you are relying on the various quirks modes the browsers go into, which is not a good thing to rely on, you want it better controlled, which using a doctype will do. However, with a doctype, a correct one, you'll have new issues with Firefox making spaces once you add links to the images.
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465
|
Posted: 2005-Apr-21 22:22
Ah yes, the old
<td>put the tags and the content all on one line</td>
problem.
Seen it many times. A right royal pain.
|
 |
boris317
Joined: Apr 21, 2005
# Posts: 3
|
Posted: 2005-Apr-21 23:02
Thanks for the timely response. That did the trick. You guys really know your stuff. I am glad i stumbled upon this site
I would like to start using a Doctype as i would like to take my hobby further. Do u have any suggestions or pointers? I enjoy making nice graffical layouts.
|
 |
g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465
|
Posted: 2005-Apr-21 23:37
Start with HTML Transtitional 4.01 unless there is a very good reason to do something else.
Validate your code at http://validator.w3.org/detailed.html and fix any errors found.
|
 |
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
- You have not yet logged in, or registered properly as a member
- You are a member, but no longer have posting rights.
- This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you cannot find this message, click here to Re-Send it.
|
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.
|
Switch to Advanced Editor and ...
Create a New Topic
or Reply to this Thread
|
|