WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-15-2007, 12:04 PM
madjohn's Avatar
WebProWorld Member
 

Join Date: Feb 2007
Posts: 38
madjohn RepRank 0
Default IE & FF Positioning me Crazy...!

Hi all.

I have m'website that I think looks ok (see the .co.uk address in my signature).

However... it looks different in IE as it does to FF. I know that this is a 'common issue' but it would appear that the only thing that is different is the thick blue horizontal line running behind our logo - it's much higher up in FF.

I want it to look like it does at the moment in IE (v7). See my homepage in IE.

I have fiddled around with it but cannot see what it is making it position in a different place since pretty much everything else looke the same..!
The closest I get is this.

It's probably a case of me looking too hard (?) to see the obvious but can anyone help?
Reply With Quote
  #2 (permalink)  
Old 05-15-2007, 03:44 PM
ran_dizolph's Avatar
WebProWorld Veteran
 

Join Date: Jul 2005
Location: Windsor, ON
Posts: 488
ran_dizolph RepRank 1
Default

ur markup's a bit messy, but for starters, i'd aim to validate.

try a 'strict' doctype as well.

i don't know for sure, but i think it has to do with giving your table a border the deprecated way.
Reply With Quote
  #3 (permalink)  
Old 05-16-2007, 03:43 AM
madjohn's Avatar
WebProWorld Member
 

Join Date: Feb 2007
Posts: 38
madjohn RepRank 0
Default

Thanks ran for the validate link.

Hmm, I know it's not the most perfect mark up in the world but I don't really have much control over that: that is, I have tried to manipulate the autimatic tabbing etc in Dreamweaver but it doesn't seem to take. Not sure why.

Interesting point about the table border. Not sure how it might affect the positing but if I eliminate the depreciate anyway, it cannot hurt..!

Any other suggestions, anyone?
Reply With Quote
  #4 (permalink)  
Old 05-16-2007, 09:04 AM
WebProWorld Member
 

Join Date: Dec 2005
Posts: 90
JohneeMac RepRank 0
Default

I had a look but its so long i actually did a table layout i wouldnt know where to start.

If you can : convert to CSS, a lot of work i know but worth it in the long run.

Sorry i cant help further.
Reply With Quote
  #5 (permalink)  
Old 05-16-2007, 09:52 AM
pagetta's Avatar
WebProWorld Veteran
 

Join Date: Nov 2004
Location: UK
Posts: 505
pagetta RepRank 2
Default

Hi
your code is a mixture of tables and divs and the layout is all wrong. plus you have a css external style sheet but still some css on each page for future updates and design overhauls of the site you would be best served taking the time to make this all neat now.

In the mean time I seem to have solved your problem:

First of all on the css sheet you didn't even have a bannertop div id so get rid of the class bannertop and replace it with this:

#bannertop {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
position:absolute;
top:0;
left:0;
padding:13px 0 0 71px;
width:428px; height:77px; z-index:2;
margin:0;
}


next, you need to define padding and margins on header classes as in my experience they have default so for your h1.promotional change it to this:

h1 { font-size: 1.4em;padding:0;margin:0;
}


On your markup your header div wasn't even at the top of the page - move the div "bannertop" to immediately below the <body> tag and make it read like this:

<div id="bannertop">
<h1> Sunbase Promotional Agency</h1>

</div>


The table that is behind this holding the blue line is way down the code - you were using 2

</p> tages to make the space which is probably why it was different in firefox and IE - instead use the spacer gif you're using in the blue bar so that the code for the table looks like this:

<table width="800" border="0" cellpadding="0" cellspacing="0">

<tr>
<td width="100%" height="20" valign="top">[img]images/images.gif[/img]</td>
<td width="1"></td>
</tr>

<tr>
<td height="7" valign="top" bgcolor="#3399CC">[img]images/images.gif[/img]</td>
<td></td>
</tr>
<tr>
<td height="100" valign="top">

</p>

</p></td>
<td></td>
</tr>

<tr>
<td height="1"></td>
<td>[img]images/images.gif[/img]</td>
</tr>
</table>


This should make the header sit the same in FF and IE - BUT really you need to neaten up your code - without any styling your layout would not read as you want it to and this is what it should do.

I hope this helps somewhat :-)
Reply With Quote
  #6 (permalink)  
Old 05-16-2007, 12:13 PM
madjohn's Avatar
WebProWorld Member
 

Join Date: Feb 2007
Posts: 38
madjohn RepRank 0
Default

Thanks pagetta.

Yes, it is more than somewhat helpful. I have also been looking at other CSS stuff like image centering and it's a mine field. I guess that the more I do the better I'll get!

I didn't know I had a redundant class named in my style sheet! < shows my confusion, maybe...! Good spot!

I put the banner below my content as I thought the content was more important further up (for spiders). Plus with the company name in the <title> it wouldn't matter so much about it's placement in the code. I'll shift it.

^ Is this what you (and ran_dizolph) meant by my markup being messy?
Should I just dump tables altogether then and just use <div>s instead?

If I may can you PM me your webite address so I can see how it's supposed to be done (if that's allowed and don't want others to see it)?
Also, I validated my front page and other than the blue dots not having any 'alt=' there was only a BORDERCOLOR issue.
That actually surprised me! lol

Those two

</p> tags are probably the problem to my original query, as you say. I'll implement your code suggestions as soon as I can and see what happens.
Thank you sooo much! :)
Reply With Quote
  #7 (permalink)  
Old 05-16-2007, 12:22 PM
pagetta's Avatar
WebProWorld Veteran
 

Join Date: Nov 2004
Location: UK
Posts: 505
pagetta RepRank 2
Default

Hiya

You can use a variety of divs and tables but make sure your content is ordered correctly - imagine it being viewed with no images or css styles at all - would it still make sense to the user? at the minute i'm not sure your code would.

my sites are in my sig but they are not pure css (yet) they are all structured table designs which we are currently redesigning in xml/css. The only site i have done in pure css is www.costabrava-villa.co.uk but my css knowledge is still very limited. try cssbeauty or stylegala for great css websites

From what i can gather from the experts in this forum, there isn't a major advantage in terms of seo for css/xml over table designs except that your code will be a bit clenaer/leaner and of course your site is easier to control in terms of aesthetics/layout/usability.
Reply With Quote
  #8 (permalink)  
Old 05-18-2007, 06:22 AM
madjohn's Avatar
WebProWorld Member
 

Join Date: Feb 2007
Posts: 38
madjohn RepRank 0
Default

Y'ello Pagetta,

I just thought I'd let you know that I have re-styled my page code to pretty much what you kindly outlined above and indeed, it had solved my problem.

Thank very much!! :D
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0