Jump to content


Photo

HTML Attribute/Layout help


  • Please log in to reply
11 replies to this topic

#1 oddity

oddity
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationToronto

Posted 16 July 2006 - 06:16 PM

Hey, I found you guys through google, and seems like you have a vast amount of members with coding knowledge.


So, I'm almost out of the hole trying to validate my page, but ran into 3 problems.

[1-2]. http://validator.w3....&ss=1&verbose=1

[3]. My layout is fine. (No problems in I.E/Firefox)

But, when I add the doctype <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR...ml4/loose.dtd">

It pushes my layout up. (Firefox)

Pushes up and mangles the layout a bit (Internet Explorer)


If anyone can assist me with codes to fix this, it would be greatly appreciated.


#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 16 July 2006 - 07:21 PM

<td width="69" style="background:url('images/bak2.jpg'); height:100%">

That should take care of the validation problem. As the message said ...
Legend has it that reading the manual never killed anyone.
My site

#3 oddity

oddity
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationToronto

Posted 16 July 2006 - 07:50 PM

It did, thanks!

Now, if I can only figure out problem #3. (doctype problem)

#4 oddity

oddity
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationToronto

Posted 17 July 2006 - 02:10 AM

Sorry to bump, but I'm seriously not figuring out why it's doing this.

This is the doctype I'm using <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR...ml4/loose.dtd">

Here is the link to source/site.

http://validator.w3....&ss=1&verbose=1

Thanks again in advance.

#5 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 17 July 2006 - 03:14 PM

The link shows that it validates.  Does that mean the problem is solved, or that I've misunderstood the question?
Legend has it that reading the manual never killed anyone.
My site

#6 pixy

pixy
  • Members
  • PipPipPip
  • Advanced Member
  • 295 posts

Posted 17 July 2006 - 03:47 PM

^ The problem is that the code it is messing up layout.

This is a .44 Caliber Loveletter straight through my heart.

Tabulas + Threadless + Hire Me!


#7 oddity

oddity
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationToronto

Posted 17 July 2006 - 07:15 PM

Yeah, the doctype is messing up my layout.

I tried messing around with the 'padding', still to no avail.

#8 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 07:22 PM

Looking at your sites source code it is a real mess and am not suprised the broweser isnt displaying your site correctly. You are using way too many tables. You should code the site yourself rather than depending on Dreamweaver, or what ever WYSIWYG editor to put the site together for you, which appears to be the case here.

#9 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 17 July 2006 - 07:29 PM

Can you clarify what's "messed up".  Some of the images you're using appear to have borders of their own rather than this being a visual defect ascribed to the browser doctype. A couple of simple screenshot segments showing how it appears with the doctype and how it appears without it might help define "messed up".
Legend has it that reading the manual never killed anyone.
My site

#10 oddity

oddity
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationToronto

Posted 17 July 2006 - 08:43 PM

Can you clarify what's "messed up".  Some of the images you're using appear to have borders of their own rather than this being a visual defect ascribed to the browser doctype. A couple of simple screenshot segments showing how it appears with the doctype and how it appears without it might help define "messed up".


Posted Image
--------------------------------------------------------------------------------------
Posted Image






#11 oddity

oddity
  • New Members
  • Pip
  • Newbie
  • 6 posts
  • LocationToronto

Posted 20 July 2006 - 07:58 PM

Well, I fixed the doctype problem. I just have one more issue before I'm out of that shark infested water.


Error Line 54 column 104: end tag for element "DIV" which is not open.

crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">x</div><img src="'+which+'">'
crossobj.style.visibility="visible"
return false
}


Anyway of solving this issue.?





#12 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 02 September 2006 - 05:42 PM

Curious. Quite obviously in that code the div IS closed. I'm wondering if the validator got a little confused there.  Try closing the SPAN before the closing div tag.
Legend has it that reading the manual never killed anyone.
My site




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users