Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

gaps in layout

This is a discussion on "gaps in layout" within the Web Page Design section. This forum, and the thread "gaps in layout are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 8th, 2007, 14:38
Reputable Member
Join Date: Sep 2007
Location: UK
Age: 42
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
gaps in layout

http://www.wasteofinc.co.uk/jimi

stylesheet is http://www.wasteofinc.co.uk/jimi/style.css

if your looking on firefox, you can see there is a gap between the header and the banner, it shows the background through it aswell.

anyone tell me whats wrong please?


ta!

Last edited by jtyoungs; Oct 8th, 2007 at 14:49. Reason: solved the second problem myself =D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Oct 8th, 2007, 15:02
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

I played around with the code a bit and seem to have been able to get it working.

First thing I did was add this to the #banner div
Code: Select all
#banner{
    width: 800px;
    height: 30px;
    background: #000000;
    overflow: hidden;
            

}
This makes that black banner the correct height
This messed up the location of the image inside the banner. It had to do with the h1 that was around it.
So I changed the h1 to:
Code: Select all
h1{
    font-family: Helvetica, Arial, Sans-serif;
    color: white;
    font-size: 12px;
    padding: 0;
    margin: 0;
}
See if this fixes your issue!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 8th, 2007, 15:06
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,909
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Re: gaps in layout

you seem to have <h1> tags around an image in banner div remove this and you should be ok.

I would also add
Code: Select all
text-indent:-1999px;
to the header div. This way you can add a good description of your site, with keyphrases, and the text won't show up.
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
xtreme wales - extreme clothing | extreme sports shop | cheap sunglasses
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)

Last edited by welshstew; Oct 8th, 2007 at 15:08.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 8th, 2007, 15:15
Reputable Member
Join Date: Sep 2007
Location: UK
Age: 42
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

cheers guys! sorted now!

only a few more bits and pieces to go now!

jimi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 8th, 2007, 15:56
Up'n'Coming Member
Join Date: Nov 2006
Location: Ipswich
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

Quote:
Originally Posted by welshstew View Post
you seem to have <h1> tags around an image in banner div remove this and you should be ok.

I would also add
Code: Select all
text-indent:-1999px;
to the header div. This way you can add a good description of your site, with keyphrases, and the text won't show up.
Isn't this, strictly speaking, a bit naughty? Essentially you're adding phrases that the end user won't see unless he or she disables stylesheets?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 8th, 2007, 15:58
Reputable Member
Join Date: Sep 2007
Location: UK
Age: 42
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

plus screen readers will be saying aload of advertising things before they even here the nav menus! lol
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 8th, 2007, 16:05
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,870
Thanks: 1
Thanked 23 Times in 23 Posts
Re: gaps in layout

Quote:
Originally Posted by jtyoungs View Post
plus screen readers will be saying aload of advertising things before they even here the nav menus! lol
That is the risk you have to take if you use this method.
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 8th, 2007, 16:11
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,909
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Re: gaps in layout

Quote:
Originally Posted by ChrisTheSoul View Post
Isn't this, strictly speaking, a bit naughty? Essentially you're adding phrases that the end user won't see unless he or she disables stylesheets?
It all depends what you use it for. If you use it for keyword stuffing then yes, it is very naughty. But if you are using it to describe the image for when the css is turned off, then no. It's a desctiption of the item, like an "alt" tag, if you want to think of it that way.
Quote:
Originally Posted by jtyoungs View Post
plus screen readers will be saying aload of advertising things before they even here the nav menus! lol
Only if you put advertising in!

If you are looking to design your site to be DDA compliant, you should also be including skip to nav links at the top of the page, so screen readers won't even see / read this anyway.
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
xtreme wales - extreme clothing | extreme sports shop | cheap sunglasses
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 8th, 2007, 16:19
Up'n'Coming Member
Join Date: Nov 2006
Location: Ipswich
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

Quote:
Originally Posted by welshstew View Post
It all depends what you use it for. If you use it for keyword stuffing then yes, it is very naughty. But if you are using it to describe the image for when the css is turned off, then no. It's a desctiption of the item, like an "alt" tag, if you want to think of it that way.
So why not use just use the alt tag?

I'm not trying to play Devil's Advocate, i'm just interested.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 8th, 2007, 16:21
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

Because google loves and weighs the H1 tag heavier than an alt tag. Keyword phrases in an h1 tag get more attention.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 8th, 2007, 16:25
Up'n'Coming Member
Join Date: Nov 2006
Location: Ipswich
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Re: gaps in layout

This is my point though, it's got nothing to do with accessibility and everything to do with SEO.

If it isn't visible, you're deliberately misleading Google and end users.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 8th, 2007, 16:41
welshstew's Avatar
Site Admin

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,909
Blog Entries: 14
Thanks: 9
Thanked 40 Times in 38 Posts
Re: gaps in layout

I didn't say you had to use the h1 tag in there. But you do bring up an interesting point.

But this is OT, so will pick up in a later thread.
__________________
WelshStew Site Admin
If you think I've helped, click the "Thanks"
xtreme wales - extreme clothing | extreme sports shop | cheap sunglasses
WebForumz - facebook | LinkedIn
Last Blog Entry: Phorm approved for UK rollout (Sep 17th, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gaps between divs :-( danny322 Web Page Design 13 Jan 24th, 2008 11:14
Trouble closing gaps Phixon Web Page Design 2 Sep 17th, 2007 15:00
Strange gaps in FF (IE works fine) Donny Bahama Web Page Design 18 May 28th, 2007 16:31
Gaps due to tables in Firefox Sporky Web Page Design 8 Dec 20th, 2006 15:33
Strange gaps in table cells Paula Web Page Design 2 Oct 2nd, 2006 16:44


All times are GMT. The time now is 18:57.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8