473,321 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

ok,this css is driving me batty

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
Apr 4 '06 #1
3 1072
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)
Apr 4 '06 #2
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)
Apr 4 '06 #3
In article <49************@individual.net>,
Arne <in*****@domain.invalid> 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
Apr 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: pete | last post by:
I found it in the view source of a corporate website. <script Language="Javascript"> <!-- var keyMacro= ]; //--> </script>
16
by: Kenneth McDonald | last post by:
For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my "main" system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour...
2
by: Grey Knight | last post by:
Here's a problem which is driving me slowly insane. Using GCC version 3.3.1 on SuSE 9.0, I keep getting "undefined reference to `function'"-type errors for no apparent reason! It's driving me...
1
by: mcgavock | last post by:
Ok here is a simple page i put together to add entries into a database....yet its not adding anythign to the database....i cannot see why not....ideas???? I know i'm a n00b at asp and what i got i...
19
by: octangle | last post by:
This code is attempting to find records that have a RegJrnID that does not occur more than one time in the table. The reason that I want to find records with non-duplicated RegJrnID values is to...
4
by: robinsand | last post by:
Header File: car.h #if !defined CAR_H #define CAR_H enum TCarType { ctEconomy = 1, ctCompact, ctStandard, ctFullSize, ctMiniVan, ctSUV }; class Car { public: Car();
0
by: Ronald S. Cook | last post by:
I'm looking for code to calculate the distancde (in miles) between two cities. I'm assuming latitude/longitude would be the inputs (which I'll derive from zip codes being entered by the user). ...
5
by: mark4asp | last post by:
Every time the function below is called I get the alert. So I put a deliberate error in there and I check the value of (reportType=='MANDATE') in Firebug, which is found to be true. But still the...
1
by: Joe M. | last post by:
What is the best method for driving a word mail merge from data obtained from a vb form? Is it Word version specific? That is, will we need to rebuild the app after upgrading to Word 07? thx.
19
by: bowlderyu | last post by:
Hello, all. If a struct contains a character strings, there are two methods to define the struct, one by character array, another by character pointer. E.g, //Program for struct includeing...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.