Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Help Please



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> HTML Forum
View previous topic :: View next topic  
Author Message
Raven12388
100+ Club


Joined: 06 Apr 2008
Posts: 109
Location: Liverpool, England

PostPosted: Sat Apr 12, 2008 1:12 pm    Post subject: Help Please Reply with quote

Hi all

Ok well my site works fine in IE but looks odd in opera with out a doctype
as soon as i add the doctype it renders oddly in both IE and Opera

here is the code please someone help


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"><html>

<html>

<head><link rel="stylesheet" type="text/css" href="mystyles.css">
<title>UK Fish Hunt</title>

</head>
<body>

<center>

<div class="Header">
<img src="top.jpg"width="100%"border="0">
</div>

<div class="Container">
<div class="Navigation">
<img src="h1.jpg">
<a href="#"><img src="pl1.jpg"border="0"></a><br>

<img src="h2.jpg">
<a href="#"><img src="os1.jpg"border="0"></a><br>
<a href="#"><img src="os2.jpg"border="0"></a><br>
<a href="#"><img src="os3.jpg"border="0"></a><br>
<a href="#"><img src="os4.jpg"border="0"></a><br>
<a href="#"><img src="os5.jpg"border="0"></a><br>
<a href="#"><img src="os6.jpg"border="0"></a><br>
<a href="#"><img src="os7.jpg"border="0"></a><br>
<a href="#"><img src="os8.jpg"border="0"></a><br>
<a href="#"><img src="os9.jpg"border="0"></a><br>


<img src="h3.jpg">
<a href="#"><img src="os10.jpg"border="0"></a><br>
<a href="#"><img src="os11.jpg"border="0"></a><br>
<a href="#"><img src="os12.jpg"border="0"></a><br>
<a href="#"><img src="os13.jpg"border="0"></a><br>
<a href="#"><img src="os14.jpg"border="0"></a><br>
<a href="#"><img src="os15.jpg"border="0"></a><br>
<a href="#"><img src="os16.jpg"border="0"></a><br>


<img src="h4.jpg">
<a href="#"><img src="pl2.jpg"border="0"></a>
</div>



<div class="Content">
<img src="h5.jpg"border="0"align="top"><br><br><br>
<a href="#"><img
src="me1.jpg"border="0"align"middle"></a><br><br><br>
</div>


<div class="Content">
<img src="h6.jpg"border="0"align="top"><br><br><br>
<a href="#"><img src="bellslane1.jpg"border="0"align"middle"></a><br><br><br>
</div>


<div class="Content">
<img src="h8.jpg"border="0"align="top"><br><br><br>
<a href="#"><img src="phil1.jpg"border="0"align"middle"></a><br><br><br><br>

</div>

</div>


<div class="Footer">
<br>
<img src="bottom.jpg"width="100%">
</div>

</center>

</body>

</html>

and this is the style sheet

DIV.Header
{
background-color:#8cd3d7;
width: 885px;
border: 3px double #003466;
margin: 1px;
padding: 1px;

}

DIV.Container
{
width: 895px;

}

DIV.Navigation
{
text-align:left;
background-image: url(background2.jpg);
width: 185px;
float:left;
border: 3px double #003466;
padding: 2px;
margin: 1px
}

DIV.Content
{

background-image: url(background2.jpg);
width: 688px;
float:right;
border: 3px double #003466;
padding: 1px;
margin: 1px
}

DIV.Footer
{

background-image: url(background2.jpg);
width:885px;
clear:both;
border: 3px double #003466;
margin: 1px;
padding: 1px
}

BODY

{

background-image: url(background1.jpg);background-attachment: fixed;
color:#003265;
font-size:11px;
font-family:Verdana, Arial, Helvetica, sans-serif
}


Thanks
Brian
Back to top
View user's profile Send private message Yahoo Messenger
Johnathan
500+ Club


Joined: 31 May 2007
Posts: 654
Location: Belfast, Northen Ireland

PostPosted: Sat Apr 12, 2008 1:34 pm    Post subject: Re: Help Please Reply with quote

Put the doctype in then goto http://validator.w3.org/ and validate it, and check the box to fix your code then copy into your page and it should render properly in both.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Raven12388
100+ Club


Joined: 06 Apr 2008
Posts: 109
Location: Liverpool, England

PostPosted: Sat Apr 12, 2008 3:02 pm    Post subject: Re: Help Please Reply with quote

thanks Johnathan

Well i did that and got it working perfect in IE.

Firefox and Opera get it almost perfect apart from a space in them browsers that are not on IE

is it possabe to get it perfect in all browsers using code or is it better to do the whole site as images then just using the coding to house the images???
Back to top
View user's profile Send private message Yahoo Messenger
Johnathan
500+ Club


Joined: 31 May 2007
Posts: 654
Location: Belfast, Northen Ireland

PostPosted: Sat Apr 12, 2008 3:05 pm    Post subject: Re: Help Please Reply with quote

Yea you can get it perfect in all browsers using code, as long as it is fully standard compliant and sometimes you need sort of cheats for certain browsers.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Raven12388
100+ Club


Joined: 06 Apr 2008
Posts: 109
Location: Liverpool, England

PostPosted: Sat Apr 12, 2008 3:21 pm    Post subject: Re: Help Please Reply with quote

well it all validated after i fixed the erros

on Opera and firefox i have a 20px gap between the navagation div and the footer div but it lines up perfect in IE apart from that it is perfect in all browsers any ideas?? here are images of whats happening

IE browser


Opera and firefox


Thanks
Brian
Back to top
View user's profile Send private message Yahoo Messenger
dflynn
250+ Club


Joined: 03 Oct 2007
Posts: 310
Location: Guelph, Canada

PostPosted: Tue Apr 15, 2008 2:06 am    Post subject: Re: Help Please Reply with quote

I dunno if youve caught this already but you have 2 html tags at the beginnign of your code.

I don't think that will fix anything but coding is coding.
cheers
Back to top
View user's profile Send private message MSN Messenger
rangana
250+ Club


Joined: 27 Feb 2008
Posts: 271
Location: Cebu City Philippines

PostPosted: Tue Apr 15, 2008 2:12 am    Post subject: Re: Help Please Reply with quote

Yes well spotted dflynn Smile

@Raven12388,
Fix how you call your images, give them spaces:
Code:

<img src="os1.jpg"border="0">

...Also, add img{display:block;} in your CSS might help. For further reading:
http://developer.mozilla.org/en/docs/Images,_Tables,_and_Mysterious_Gaps

Center are among the deprecated attributes, but as what Jonathan suggested,,,and yet you had already fix the validation errors Smile

...Also, if nothing still works, show us the validated code...or better a link Wink
Back to top
View user's profile Send private message Yahoo Messenger
Raven12388
100+ Club


Joined: 06 Apr 2008
Posts: 109
Location: Liverpool, England

PostPosted: Tue Apr 15, 2008 4:29 pm    Post subject: Re: Help Please Reply with quote

Thanks Guys all fixed much apreciated
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> HTML Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap