Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-11-2011, 02:56 PM   PM User | #1
kaashaas
New to the CF scene

 
Join Date: Feb 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kaashaas is an unknown quantity at this point
Problem with the size of the page

Hi everyone, I'm not an very experienced web designer and I need a little help, I've a very simple site now but there's one problem I can't solve:
My page is a lot longer than all the objects on the site. I've only used simple html and css code:

index.htm:
Code:
<html>
<head>
<link rel="stylesheet" type="text/css" href="topnav.css">
<body>

<center>
<div class='img' id='img1'>
</div>
<table id='topnav'><tr><td>
<a href='index.htm' class='topnav'><b>Home<b></a>
</table>
<div id='img2'>
</div>
<div id='img3'>
</div>
<table id='lnav'><tr id='lnav'><td id='lnav'>
<a href='index.htm' class='lnav'><b>></b>Home</a>
</table>
</center>
topnav.css:
Code:
#img1
{
background: #BBFFBB;

width: 700px;

height: 90px;

margin: 0 px;

padding: 0 px;

border: 3px solid #DDFFDD;

-moz-border-radius: 15px;

-webkit-border-radius: 15px;

border-radius: 15px;

behavior: url(border-radius.htc)

}

#topnav
{
position:relative;
width:700px;
}

a.topnav:link
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-weight: bold;
font-size:20px;
}

a.topnav:visited
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-weight: bold;
font-size:20px;
}

a.topnav:hover
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-weight: bold;
font-size:20px;
}

a.topnav:active
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-weight: bold;
font-size:20px;
}

#img2
{
background: #DDFFDD;

width: 95%;

height: 2px;

margin: 0 px;

padding: 0 px;
Position: relative;
}

#img3
{
background: #DDFFDD;

width: 2px;

height: 500px;

margin: 0 px;

padding: 0 px;
Position: relative;
right:280px;
border: 1px solid black;
}

#lnav
{
position: relative;
bottom:500px;
right:373px;
width:180px;
height:500px;
vertical-align: top;
border: 1px solid black;
}

a.lnav:link
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-size:14px;
}

a.lnav:visited
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-size:14px;
}

a.lnav:hover
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-size:14px;
}

a.lnav:active
{
color: ;
text-decoration: none;
font-family:"Arial", Arial, Arial;
font-size:14px;
}
I really hope you guys can help me out!
Thanks a lot.
kaashaas is offline   Reply With Quote
Old 02-11-2011, 03:08 PM   PM User | #2
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello kaashaas,
I'm not sure what you mean. Your #lanav tables have a height specified at 500px. You should not be using tables for this.

See the links about validation in my signature line. There are some very basic errors found by both validators that need fixed. You should also have a look at the link about tables there.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Reply

Bookmarks

Tags
css, html, size

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 06:44 PM.


Advertisement
Log in to turn off these ads.