Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / June 2003



Tip: Looking for answers? Try searching our database.

CSS-P: Design needs a few tweaks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
CJM - 30 Jun 2003 12:46 GMT
I've pinched a CSS-P layout from the web (from glish, bluerobot or
suchlike), and I'm customising the basic layout.

I'm developing it on IE6, but testing with Opera 6.04 and Netscape
6.2.3.

The URL is www.aif-advocacy.org.uk/new/index.asp

The CSS is www.aif-advocacy.org.uk/new/aif.css

The first problem is with the header; in IE6, there is a gap beneath
the two images which I dont want to see. If I remove the tags that
centre the text image, the gap disappears, but obviously the image
isnt displayed right.

This same design shows differently in the other two browsers: in
Opera, the gap is above the images, and in NS, it appears to be as
intended.

In NS & Opera, there appears to be a 15-20px gap between the
horizontal menu and the central content area, but not in IE6

And finally, in NS & IE6, the first logo has a border (presumably due
to the surrounding <a> tag), but opera doesnt. Which is the correct
behaviour? I can change this in a number of ways, eg add
'img{border:0;}' to the CSS, but what is the preferred approach.

My design goals are to produce a standards compliant, CSS-positioned,
Accessible site or as near to it as possible, but I'm continually
stumbling over problems and I'm never quite sure if my approach is
wrong or if the browsers are simply misbehaving...

Thanks in advance
Travis Spencer - 30 Jun 2003 15:34 GMT
Hey CJM,

> The first problem is with the header; in IE6, there is a gap beneath
> the two images which I dont want to see. If I remove the tags that
> centre the text image, the gap disappears, but obviously the image
> isnt displayed right.

Does adding this rule get you what you are after?

#hdr P
{
   margin: 0;
   text-align: center;
}

Also, note that your #hrd P is accidentally being closed twice.

Your code:
   <p><img src="images/logo-text2.png" alt="AIF Logo (Text)" width="254"
height="60" /></p></p>

Change to:
   <p><img src="images/logo-text2.png" alt="AIF Logo (Text)" width="254"
height="60" /></p>

Also, the @import is a little off.

Your code:
   <style type="text/css" media="all">@import "AIF.css"; </style>

Change to:
   <style type="text/css" media="all">@import url(AIF.css); </style>

Also, because HTML documents should not contain ASCII value greater than
127, it might be a better idea to use this copyright notice in your head
section:
Comments: Copyright (c) 2003 Brightnorth.com

> And finally, in NS & IE6, the first logo has a border (presumably due
> to the surrounding <a> tag), but opera doesnt. Which is the correct
> behaviour? I can change this in a number of ways, eg add
> 'img{border:0;}' to the CSS, but what is the preferred approach.

I prefer this:

A IMG { border-style: none; }

HTH, CJM.

Regards,

Travis Spencer
Portland, OR USA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.