6 replies [Last post]
tobi
tobi's picture
Offline
Regular
Last seen: 13 years 7 weeks ago
Timezone: GMT+2
Joined: 2007-03-22
Posts: 38
Points: 4

Hello
Another pathetic question, it seems som simple, yet I

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 47 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Add display:inline to your

Add display:inline to your first left float to cancel 'Double Margin Bug'

Validation? you don't close out empty tags with html 4.01 '/>'

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

tobi
tobi's picture
Offline
Regular
Last seen: 13 years 7 weeks ago
Timezone: GMT+2
Joined: 2007-03-22
Posts: 38
Points: 4

Hugo wrote:Add

Hugo wrote:
Add display:inline to your first left float to cancel 'Double Margin Bug'

Works! Simply beautiful, thanx a million - never heard of before, great!

Hugo wrote:
Validation? you don't close out empty tags with html 4.01 '/>'

Thank you Hugo, but please, can you be more specific, what does that mean in this very example?

Thank you once again!
/Tobi

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 31 weeks 6 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

You should validate your

You should validate your HTML, it's good practise.

HTML 4.01 (your doctype) doesn't need the trailing / slashes to close elements; either take them out or bump up your DTD to xHTML 1.0 strict.

Verschwindende wrote:
  • CSS doesn't make pies

tobi
tobi's picture
Offline
Regular
Last seen: 13 years 7 weeks ago
Timezone: GMT+2
Joined: 2007-03-22
Posts: 38
Points: 4

thepineapplehead wrote:You

thepineapplehead wrote:
You should validate your HTML, it's good practise.

Yep - just got into the hapit of doing that!

thepineapplehead wrote:
HTML 4.01 (your doctype) doesn't need the trailing / slashes to close elements; either take them out

Ok, how would my head & body tags look then, please specify..

thepineapplehead wrote:
or bump up your DTD to xHTML 1.0 strict.

And then I can leave my code as is?

Ok, once again - a million thanx!
/T

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 31 weeks 6 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

Sorry, it's only empty tags

Sorry, it's only empty tags that don't need the closhing slash in Html 4.01

Example:

that's XHTML. For your HTML 4 DTD, you'd use:

Leave the head and body tags as they are Tongue

It's only necessary to close the single empty tags, such as the meta tags, stylesheet links, and HTML content such as <br /> and <hr />, tags that don't by default have a closing tag eg <p></p>

Verschwindende wrote:
  • CSS doesn't make pies

tobi
tobi's picture
Offline
Regular
Last seen: 13 years 7 weeks ago
Timezone: GMT+2
Joined: 2007-03-22
Posts: 38
Points: 4

Hello thepineapplehead, and

Hello thepineapplehead, and thank you very much for your explanatory answers! Things are a lot clearer now!

All the best!
1000 thanx
/Tobi