Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > ok,this css is driving me batty

Reply
Thread Tools

ok,this css is driving me batty

 
 
Paul Watt
Guest
Posts: n/a
 
      04-04-2006
Hi,
I've done a really simple layout.
http://www.paulwatt.info/test/turn/layout.html

Why is there a gap between the top two Divs?

http://www.paulwatt.info/test/turn/Tlayout.css

Cheers guys and gals

Paul

--
http://www.paulwatt.info


 
Reply With Quote
 
 
 
 
Arne
Guest
Posts: n/a
 
      04-04-2006
Once upon a time *Paul Watt* wrote:
> Hi,
> I've done a really simple layout.
> http://www.paulwatt.info/test/turn/layout.html
>
> Why is there a gap between the top two Divs?
>
> http://www.paulwatt.info/test/turn/Tlayout.css
>
> Cheers guys and gals


Headers (h1, h2, etc) have a default margin, so you must set your own
margin for them if you are not satisfied with the default.

..header h1 {margin: 0px;}

--
/Arne

"I travel cross the country and talked to the most competent persons,
and I can assure you that the computer is a fashion craze that will not
stand the whole year.
(Editor for business literature, Prentice Hall, 1957)
 
Reply With Quote
 
 
 
 
Ed Jay
Guest
Posts: n/a
 
      04-04-2006
Paul Watt scribed:

>Hi,
>I've done a really simple layout.
>http://www.paulwatt.info/test/turn/layout.html
>
>Why is there a gap between the top two Divs?
>
>http://www.paulwatt.info/test/turn/Tlayout.css
>

You want to [at least] specify top and bottom margins = 0. The header
elements have default values depending on font size.
--
Ed Jay (remove 'M' to respond by email)
 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      04-04-2006
In article <>,
Arne <> wrote:

> Once upon a time *Paul Watt* wrote:
> > Hi,
> > I've done a really simple layout.
> > http://www.paulwatt.info/test/turn/layout.html
> >
> > Why is there a gap between the top two Divs?
> >
> > http://www.paulwatt.info/test/turn/Tlayout.css
> >
> > Cheers guys and gals

>
> Headers (h1, h2, etc) have a default margin, so you must set your own
> margin for them if you are not satisfied with the default.
>
> .header h1 {margin: 0px;}


Quite right. Btw, the wrapper here does not seem to be doing
much. And OP could consider using an inline list for menu items,
and correct the markup, p tags are incorrectly distributed/closed.

--
dorayme
 
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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
this is driving me batty.... mcgavock@gmail.com ASP General 1 01-10-2006 04:19 PM
Find function is driving me crzy Boris Mohar Firefox 1 11-24-2005 07:02 PM
Driving signals from a procedure Andy Peters VHDL 4 05-20-2005 08:51 AM
Multiple sources driving a bus + synthesis / implementation Henk De Denktenk VHDL 6 12-07-2004 02:15 AM
Driving INOUT ports Mike Nicklas VHDL 0 02-23-2004 03:45 PM



Advertisments