Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

boris317
Joined: Apr 21, 2005
# Posts: 3

View the profile for boris317 Send boris317 a private message

Posted: 2005-Apr-21 21:24
Edit Message Delete Message Reply to this message

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 wink Any help would be greatly appreciated.



lizardz
Joined: Nov 12, 2004
# Posts: 1394

View the profile for lizardz Send lizardz a private message

Posted: 2005-Apr-21 22:04
Edit Message Delete Message Reply to this message

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

View the profile for g1smd Send g1smd a private message

Posted: 2005-Apr-21 22:22
Edit Message Delete Message Reply to this message

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

View the profile for boris317 Send boris317 a private message

Posted: 2005-Apr-21 23:02
Edit Message Delete Message Reply to this message

Thanks for the timely response. That did the trick. You guys really know your stuff. I am glad i stumbled upon this site wink
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

View the profile for g1smd Send g1smd a private message

Posted: 2005-Apr-21 23:37
Edit Message Delete Message Reply to this message

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:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. 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

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions