Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > HTML, XHTML and CSS

Reply
 
LinkBack Thread Tools
Old August 6th, 2007, 03:09 PM   #1
New Member
 

Join Date: Jul 2006
Location: Nottingham, UK
Age: 38
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dartiss is on a distinguished road
Blank line problem

I'm having a frustrating time with a bit of CSS trouble!

Here is what I'm working on...
http://www.artisswebdesign.co.uk/test/

Between the menu and the top advert there is a blank line. Unfortunately, it only appears in IE, and not Firefox. For the life of me, I can't get a blank line to appear consistently, and I don't know the cause either.

Any assistance with this would be greatly appreciated.

David.
dartiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:12 PM   #2
Elite Veteran
 

Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all
Re: Blank line problem

You have a <br/> which I highlighted below in red. Take that out and see if it gets rid of the space.
Code:
<div class="sub">

<span><a href="index.php" class="menu">Home</a></span>
<span><a href="about.php" class="menu">About</a></span>
<span><a href="download.php" class="menu">Downloads</a></span>
<span><a href="instructions.php" class="menu">Instructions</a></span>
<span><a href="support.php" class="menu_end">Support</a></span>

</div><br/>
<div class="center">
Lchad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:20 PM   #3
New Member
 

Join Date: Jul 2006
Location: Nottingham, UK
Age: 38
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dartiss is on a distinguished road
Re: Blank line problem

I put that there on purpose

It's creating the blank line in IE, which is what I want. I was just expecting Firefox to do the same thing.

Instead of the BR I've tried using padding/margins/etc on the DIV's but that's had the same effect - no blank line in Firefox.

David.
dartiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:37 PM   #4
Elite Veteran
 

Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all
Re: Blank line problem

My apologies, I thought you wanted the space deleted. Let me go have a look at the code..
Lchad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:39 PM   #5
New Member
 

Join Date: Jul 2006
Location: Nottingham, UK
Age: 38
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dartiss is on a distinguished road
Re: Blank line problem

Quote:
Originally Posted by Lchad View Post
Let me go have a look at the code..
If you find the fault, you will be a star beyond belief. It's been driving me mad for days!!!

David.
dartiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:40 PM   #6
Elite Veteran
 

Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all
Re: Blank line problem

Did you try adding margin-bottom
Code:
.sub        
            {
    margin-left: auto;
    margin-right: auto;
    width: 700px;
    margin-bottom: 20px;
}
Lchad is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:44 PM   #7
New Member
 

Join Date: Jul 2006
Location: Nottingham, UK
Age: 38
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dartiss is on a distinguished road
Re: Blank line problem



That worked!

You know, I'm sure I've tried that before. I suspect I must have tried it before I fixed something else, and not since.

Doh!

Well, as I said you are a true star. Thank you.

David.
dartiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 03:48 PM   #8
New Member
 

Join Date: Jul 2006
Location: Nottingham, UK
Age: 38
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 dartiss is on a distinguished road
Re: Blank line problem

No, apologies. It's not fixed.

The link I provided before now have the <BR> removed and the padding you suggested put into place. Still doesn't work with Firefox.

David.
dartiss is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old August 6th, 2007, 05:28 PM   #9
Elite Veteran
 

Join Date: Sep 2006
Location: Pink House
Posts: 3,941
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all Lchad is a name known to all
Re: Blank line problem

Well that stinks...
It is "better" though. Before there wasn't a bit of light blue showing, now there is a slight bit. Should you try margin-bottom: 50px;?

You could also add to .center
margin-top: 20px;

Let me know..
Lchad is offline  
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

Bookmarks

Tags
css , firefox , spacing


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Have a major problem with Text Line-Height vidoewebmastery HTML, XHTML and CSS 2 March 24th, 2008 05:15 PM
Fwrite with new line break problem? meth8200 PHP 2 February 4th, 2008 11:23 AM
Swf is blank? spires Flash and ActionScript 3 July 21st, 2007 06:36 PM
problem running php from the command line edwarrj1 PHP 2 December 5th, 2006 02:06 PM
Problem with IE , Firefox displays website fine (blank space issue) eksquall HTML, XHTML and CSS 6 July 29th, 2006 01:52 PM


Search Engine Optimization by vBSEO 3.2.0 RC8