Jump to content

Archived

This topic is now archived and is closed to further replies.

oddity

HTML Attribute/Layout help

Recommended Posts

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.org/check?uri=http%3A%2F%2Fdejonisodd.com%2Fdejon.html&charset=%28detect+automatically%29&doctype=Inline&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/html4/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.

Share this post


Link to post
Share on other sites
[code]<td width="69" style="background:url('images/bak2.jpg'); height:100%"> [/code]

That should take care of the validation problem. As the message said ...

Share this post


Link to post
Share on other sites
It did, thanks!

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

Share this post


Link to post
Share on other sites
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/html4/loose.dtd">

Here is the link to source/site.

http://validator.w3.org/check?uri=http%3A%2F%2Fdejonisodd.com%2Fdejon.html&charset=%28detect+automatically%29&doctype=Inline&ss=1&verbose=1

Thanks again in advance.

Share this post


Link to post
Share on other sites
The link shows that it validates.  Does that mean the problem is solved, or that I've misunderstood the question?

Share this post


Link to post
Share on other sites
^ The problem is that the code it is messing up layout.

Share this post


Link to post
Share on other sites
Yeah, the doctype is messing up my layout.

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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".

Share this post


Link to post
Share on other sites
[quote author=AndyB link=topic=100801.msg398877#msg398877 date=1153164593]
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".
[/quote]

[img]http://lilhaloshaka.googlepages.com/1.gif[/img]
--------------------------------------------------------------------------------------
[img]http://lilhaloshaka.googlepages.com/2.gif[/img]




Share this post


Link to post
Share on other sites
Well, I fixed the doctype problem. I just have one more issue before I'm out of that shark infested water.


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

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

Anyway of solving this issue.?



Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.