3 replies [Last post]
Mitsuaami
Offline
newbie
Last seen: 17 years 12 weeks ago
Joined: 2004-09-11
Posts: 1
Points: 0

OK so I'm working on this site for my web designing 101 class and coding in a little css but I can't figure out how to get rid of the line breaks... I want the whole page to fit in a 800 / 600 browser window and it would be perfect if I could get rid of the line breaks.
Could you help me out?

here's the addy:
http://sweb.uky.edu/~arhamp2/

-Angel

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 days 23 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Over riding the line break before and after DIV

Mitsuaami,
The best thing would be to remove the <br> tags from your html.

Hope that helps

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 days 23 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5344
Points: 2965

Over riding the line break before and after DIV

Hi Mitsuaami,
Sorry I didn't read the post title Sad

I not really sure which div is adding the line break.
Have you tried setting margin and padding to 0.

Hope that helps

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

Over riding the line break before and after DIV

Mitsuaami,
absolutly no offence intended but is "web design 101" actualy a course in html web coding because if it is, it is teaching you very out of date and jumbled practices there are a number of errors on the page starting with the favourite no DTD I don't think there is any reason not to be using one really, there are also errors in the inline styling, your widths must have a unit defined with the numbers i.e 620px and that size is larger than the stated width for the containing table also you have an open div that needs closing it's difficult to help when there are basic errors such as these, if you clear these up you will have a better idea of what is happening and if your studying it would make a lot of sense to be working to standards and full CSS from the outset rather than getting into bad habbits as this style of coding is dying out slowly but surely.

Hugo.

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