Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Centring in Dreamweaver.
Old 02-24-2005, 09:14 AM Centring in Dreamweaver.
Average Talker

Posts: 20
Trades: 0
Hello to everybody - this is my first post but I have been looking round for a while
Anyway, I understand that to centre a website absolutely in Dreamweaver I can put the whole site in a table and centre that; however when I do this there is a gap at the top of the screen in IE of about 1cm where the table doesn't quite fill up to the top of the window. Can I get rid of this gap at all? Thanks in advance for your help.
moet is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-24-2005, 09:21 AM
Padawan's Avatar
Ultra Talker

Posts: 479
Location: London
Trades: 0
Hi and welcome to WT.

Are you getting this problem with a template you are modifying because I had this problem too for a while until I looked at the code and realised there was a "spacer" at the top of the page.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Padawan is offline
Reply With Quote
View Public Profile Visit Padawan's homepage!
 
Old 02-24-2005, 10:02 AM
Average Talker

Posts: 20
Trades: 0
I get the problem when I create a completely new page. I have tried this with a blank page and blank table and still get the gap. I'm not too brilliant with HTML etc; what would I look for to know if a gap was being inserted? Thanks again.
moet is offline
Reply With Quote
View Public Profile
 
Old 02-25-2005, 07:28 AM Your fix is.....
JohnJ's Avatar
Extreme Talker

Posts: 198
Location: Raleigh, NC
Trades: 0
Add topmargin="0" to your main table (the one immediately following the body tag>. Like <table topmargin="0" etc. etc.>
__________________
JohnJ

Please login or register to view this content. Registration is FREE

WebImages Inc. - Raleigh NC
JohnJ is offline
Reply With Quote
View Public Profile Visit JohnJ's homepage!
 
Old 02-25-2005, 12:28 PM
Average Talker

Posts: 20
Trades: 0
This is the code for the basic table, and wherever I put in 'topmargin 0' I can't make it work. (Incidentally I know webeditor 3 is old - I have Dreamweaver too but I'm just messing about with this for now).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>Untitled</title>
<meta name="generator" content="Namo WebEditor v3.0">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<p>&nbsp;
<table border width="793" height="500">
<tr>
<td width="783"><p>&nbsp;</td>
</tr>
</table>
<p>&nbsp;</p>
</body>

</html>
moet is offline
Reply With Quote
View Public Profile
 
Old 02-25-2005, 08:33 PM Extra code causing problem.
QueenOfStarwars's Avatar
Average Talker

Posts: 20
Trades: 0
Hi there. You have extra code that is causing the problem.

In your code, you have:
==================================
body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p>&nbsp;
<table border width="793" height="500">
==================================

The paragraph and non-breaking space after the body and before the table is putting extra white space at the top. If you delete, you'll notice the difference.

To rid yourself of ALL of the white space, then enter the information provided by JohnJ.

Hope this helps!
Jeannie
__________________
Jeannie
"ergo bibamus"
QueenOfStarwars is offline
Reply With Quote
View Public Profile
 
Old 02-26-2005, 10:32 AM
Average Talker

Posts: 20
Trades: 0
That's great! Thanks very much again for your help; removing the extra bits of code shifted the table up a bit.
Unfortunately there is still a small white gap at the top of the page in IE and I can't seem to get rid of it where I put the topmargin=0 command. Any ideas where it should go?

I must thank you for the help again; I'm just learning this stuff and I'm sure you must be shaking your head at my lack of knowledge of the most basic stuff.
moet is offline
Reply With Quote
View Public Profile
 
Old 02-27-2005, 09:48 AM More Info Needed
QueenOfStarwars's Avatar
Average Talker

Posts: 20
Trades: 0
Don't worry about asking questions!!! I ask questions all the time and I do this as my full-time job.

If you could send a link to your page or even if you could send your page code, that'd help
__________________
Jeannie
"ergo bibamus"
QueenOfStarwars is offline
Reply With Quote
View Public Profile
 
Old 02-27-2005, 10:13 AM
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
set your page margins to zero

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

(i assume you're not using css)
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Old 02-27-2005, 01:06 PM
Average Talker

Posts: 20
Trades: 0
Thanks again for the information; I've finally made it work at last! I think the problem might have been trying to use the code in Namo webeditor; when I tried the same bits of code in Dreamweaver it worked perfectly but in Namo I was always stuck with the white space at the top.
Thanks again.
Incidentally I don't have a website yet so couldn't post my efforts for you to see.
As a matter of interest I've only just started to look at HTML/Dreamweaver etc and I'm finding the whole thing a bit overwhelming; there seems to be so much to learn - particularly as I have all the Macromedia stuff. I hope everyone else found this too?
moet is offline
Reply With Quote
View Public Profile
 
Old 02-27-2005, 03:31 PM
Super Moderator

Posts: 1,584
Location: Kokkola, Finland
Trades: 1
of course it's all a bit confusing at first and it takes some time but it's good fun along the way!
this is a good place to start
http://www.w3schools.com/
and of course bringing things up in the forums which is a good place to get help from those who have been there before
davemies is offline
Reply With Quote
View Public Profile Visit davemies's homepage!
 
Reply     « Reply to Centring in Dreamweaver.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.31878 seconds with 12 queries