|
 |
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
|
|
09-15-2011, 09:55 AM
|
PM User |
#1
|
|
New to the CF scene
Join Date: Sep 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Unaccounted space
Hi,
I have been working on a site layout, but there appears (in all browsers) a gap between two divs, but why there is I don't know!!
It is driving me nuts! I know I have done something really simply stupid!!
There should not be a gap between header and strapline... They should butt up against each other..
http://www.synaxissolutions.co.uk/test/fin/test.html
Many thanks in advance
|
|
|
|
09-15-2011, 10:10 AM
|
PM User |
#2
|
|
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,555
Thanks: 0
Thanked 196 Times in 192 Posts
|
Hi there wood1e2,
and a warm welcome to these forums.
your unwanted space is the result of these two highlighted attributes...
Code:
#strapline {
width: 100%;
height: 190px;
margin: 0 auto;
background-image:url(images/strapline_bg.jpg);
}
#strapline_content {
width: 960px;
height: 190px;
margin: 0 auto;
}
Last edited by coothead; 09-15-2011 at 10:12 AM..
|
|
|
09-15-2011, 10:20 AM
|
PM User |
#3
|
|
New to the CF scene
Join Date: Sep 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi
Many thanks
I have removed the highlighted lines but all that does is shrink the div Strapline to the high of the text 'Insert Something here'
Not move the div strapline to right up against the div header.
Any other ideas  It is driving me mad!! lol
|
|
|
09-15-2011, 10:32 AM
|
PM User |
#4
|
|
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,555
Thanks: 0
Thanked 196 Times in 192 Posts
|
Hi there wood1e2,
I am sorry that my suggestion did not suit your requirements, but I was not sure which space you wanted to remove.
If it is the white space then that is the result of these highlighted attributes...
Code:
#header {
width: 100%;
height: 100px;
margin: 0 auto;
background-image:url(images/header_bg.jpg);
background-position: bottom;
}
#header_content {
width: 960px;
height: 100px;
margin: 0 auto;
}
coothead
|
|
|
09-15-2011, 12:18 PM
|
PM User |
#5
|
|
New to the CF scene
Join Date: Sep 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi,
The white space is absolutely fine, as is the space with the wording 'Insert Content here'
It is the space/gap between those two divs. there should be no gap
Cheers
|
|
|
09-15-2011, 12:33 PM
|
PM User |
#6
|
|
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,555
Thanks: 0
Thanked 196 Times in 192 Posts
|
Hi there
Now that you have defined unwanted space, add the highlighted attribute here...
Code:
#strapline_content h1 {
margin:0;
text-align:center;
color: #FFFFFF;
}
...to remove the default margin that the h+ elements possess.
coothead
|
|
|
09-15-2011, 01:03 PM
|
PM User |
#7
|
|
New to the CF scene
Join Date: Sep 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Oh of course I completely forgot the margin in H1 !!!!
Many thanks for your help
|
|
|
09-15-2011, 05:12 PM
|
PM User |
#8
|
|
Senior Coder
Join Date: Jan 2004
Location: chertsey, a small town 25 miles south west of london, england.
Posts: 1,555
Thanks: 0
Thanked 196 Times in 192 Posts
|
I just knew that, together, we would get the pesky little bugger. 
|
|
|
09-15-2011, 07:18 PM
|
PM User |
#9
|
|
New to the CF scene
Join Date: Sep 2011
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
Can't see the wood for the trees sometimes
Thanks
|
|
|
 |
Jump To Top of Thread
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +1. The time now is 01:26 PM.
|
Advertisement Log in to turn off these ads. |
|
|
|
|
|
|
|
|
|
|