gh05
11-03-2008, 08:45 AM
Hiya
I've got the below code working for Internet Explorer and Firefox, but I've just tried it on my home PC and the page does not fit onto the screen as it does elsewhere. I'm not sure if this is because my screen at home is a different size to the other PCs I've tried it on?
Could you please have a look at the below and see if you can tell where I need to change the code so that it fits onto the screen it is being viewed on, rather than having scroll bars?
#container
{
width:1109px;
}
A:link {text-decoration: none; color: #0000FF;}
A:visited {text-decoration: none; color: #0000FF;}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: red;}
img{border:0;}
h1{font-size:19px};
body{
background-color:#ffffff;
}
#topleftimage
{
float:left;
}
#topcentertext{
margin: 25px 0 0;
color:#ffffff;
}
#toprightimage
{
float:right;
}
#topPanel
{
height:100px;
font-weight: bold;
background-color: #008080;
font-size: 26px;
text-align:center;
color: #0000EE;
border:medium double #000080;
margin: 10px 0 0 0;
padding 7px 7px 7px 7px;
}
#leftPanel
{
float:left;
height:400px;
width:250px;
font-weight: bold;
background-color: #FFFF7E;
text-align:center;
border:medium double #000080;
margin: 5px 5px 0 0;
padding 7px 7px 7px 7px;
}
#rightPanel
{
float:right;
height:400px;
width:250px;
font-weight: bold;
background-color: #FFFF7E;
text-align:center;
border:medium double #000080;
margin: 5px 0 0 0;
padding 7px 7px 7px 7px;
}
#centerPanel
{
float:left;
height:400px;
width:570px;
background-color: #FFFF7E;
font-weight:bold;
text-align:center;
border:medium double #000080;
margin: 5px 5px 0 5px;
padding 7px 7px 7px 7px;
}
#bottomPanel
{
clear:both;
height:100px;
font-weight: bold;
background-color: #ffffff;
font-size: 20px;
text-align:center;
color: #0000EE;
margin: 10px 90px 0 90px;
padding 7px 7px 7px 7px;
}
</style>
</head>
<body>
<div id="container">
<div id="topPanel">
<div id="topleftimage">
<a href=""><img src="image1.jpg" height="90" width="145" alt=""/></a>
</div>
<div id="toprightimage">
<a href=""><img src="image1.jpg" height="90" width="145" alt=""/></a>
</div>
<div id="topcentertext">
Community Learning Network
</div>
</div>
<div id="leftPanel">
<h1><b>Partners</b></h1><br/><br/>
<a href=""> Link One</a><br/><br/>
<a href=""> Link Two</a><br/><br/>
<a href=""> Link Three</a><br/><br/>
<a href=""> Link Four</a><br/><br/>
<a href=""> Link Five</a><br/><br/>
<a href=""> Link Six</a><br/><br/>
<a href=""> Link Seven</a>
</div>
<div id="rightPanel">
<h1><b>Forthcoming Events</b></h1><br/><br/>
Mon 12th January<br/>
<a href="">Event One</a><br/><br/>
Wed 15th February<br/>
<a href="">Event Two</a><br/><br/>
Fri 7th February<br/>
<a href="">Event Three</a><br/>
</div>
<div id="centerPanel">
<div id="topCenter">
<br/><br/><br/><br/>
<p>Centred Text</p>
<p>Centred Text</p>
<p>Centred Text<a href="">Click Here</a>.</p>
</div>
<div id="bottomCenter">
</div>
</div>
<div id="bottomPanel">
<a href=""><img src="image006.jpg" height="80" width="120" alt=""/></a>
<a href=""><img src="image008.jpg" height="85" width="160" alt=""/></a>
<a href=""><img src="image002.jpg" height="85" width="160" alt=""/></a>
<a href=""><img src="image003.jpg" height="105" width="72" alt=""/></a>
<a href=""><img src="image004.png" height="75" width="70" alt=""/></a>
<a href=""><img src="image007.png" height="85" width="120" alt=""/></a>
</div>
</div>
</body>
</html>
Thanks for any help in advance.
I've got the below code working for Internet Explorer and Firefox, but I've just tried it on my home PC and the page does not fit onto the screen as it does elsewhere. I'm not sure if this is because my screen at home is a different size to the other PCs I've tried it on?
Could you please have a look at the below and see if you can tell where I need to change the code so that it fits onto the screen it is being viewed on, rather than having scroll bars?
#container
{
width:1109px;
}
A:link {text-decoration: none; color: #0000FF;}
A:visited {text-decoration: none; color: #0000FF;}
A:active {text-decoration: none}
A:hover {text-decoration: underline; color: red;}
img{border:0;}
h1{font-size:19px};
body{
background-color:#ffffff;
}
#topleftimage
{
float:left;
}
#topcentertext{
margin: 25px 0 0;
color:#ffffff;
}
#toprightimage
{
float:right;
}
#topPanel
{
height:100px;
font-weight: bold;
background-color: #008080;
font-size: 26px;
text-align:center;
color: #0000EE;
border:medium double #000080;
margin: 10px 0 0 0;
padding 7px 7px 7px 7px;
}
#leftPanel
{
float:left;
height:400px;
width:250px;
font-weight: bold;
background-color: #FFFF7E;
text-align:center;
border:medium double #000080;
margin: 5px 5px 0 0;
padding 7px 7px 7px 7px;
}
#rightPanel
{
float:right;
height:400px;
width:250px;
font-weight: bold;
background-color: #FFFF7E;
text-align:center;
border:medium double #000080;
margin: 5px 0 0 0;
padding 7px 7px 7px 7px;
}
#centerPanel
{
float:left;
height:400px;
width:570px;
background-color: #FFFF7E;
font-weight:bold;
text-align:center;
border:medium double #000080;
margin: 5px 5px 0 5px;
padding 7px 7px 7px 7px;
}
#bottomPanel
{
clear:both;
height:100px;
font-weight: bold;
background-color: #ffffff;
font-size: 20px;
text-align:center;
color: #0000EE;
margin: 10px 90px 0 90px;
padding 7px 7px 7px 7px;
}
</style>
</head>
<body>
<div id="container">
<div id="topPanel">
<div id="topleftimage">
<a href=""><img src="image1.jpg" height="90" width="145" alt=""/></a>
</div>
<div id="toprightimage">
<a href=""><img src="image1.jpg" height="90" width="145" alt=""/></a>
</div>
<div id="topcentertext">
Community Learning Network
</div>
</div>
<div id="leftPanel">
<h1><b>Partners</b></h1><br/><br/>
<a href=""> Link One</a><br/><br/>
<a href=""> Link Two</a><br/><br/>
<a href=""> Link Three</a><br/><br/>
<a href=""> Link Four</a><br/><br/>
<a href=""> Link Five</a><br/><br/>
<a href=""> Link Six</a><br/><br/>
<a href=""> Link Seven</a>
</div>
<div id="rightPanel">
<h1><b>Forthcoming Events</b></h1><br/><br/>
Mon 12th January<br/>
<a href="">Event One</a><br/><br/>
Wed 15th February<br/>
<a href="">Event Two</a><br/><br/>
Fri 7th February<br/>
<a href="">Event Three</a><br/>
</div>
<div id="centerPanel">
<div id="topCenter">
<br/><br/><br/><br/>
<p>Centred Text</p>
<p>Centred Text</p>
<p>Centred Text<a href="">Click Here</a>.</p>
</div>
<div id="bottomCenter">
</div>
</div>
<div id="bottomPanel">
<a href=""><img src="image006.jpg" height="80" width="120" alt=""/></a>
<a href=""><img src="image008.jpg" height="85" width="160" alt=""/></a>
<a href=""><img src="image002.jpg" height="85" width="160" alt=""/></a>
<a href=""><img src="image003.jpg" height="105" width="72" alt=""/></a>
<a href=""><img src="image004.png" height="75" width="70" alt=""/></a>
<a href=""><img src="image007.png" height="85" width="120" alt=""/></a>
</div>
</div>
</body>
</html>
Thanks for any help in advance.