inherit
8198
0
Jan 23, 2011 9:23:58 GMT -8
SportsGuyz
Master of the Games
2,314
March 2003
ps2man
|
Post by SportsGuyz on Jul 8, 2005 12:07:40 GMT -8
I think this is the right place to put this. Somebody on this board told my to use CSS instead of tables so I am taking a crack at it I was wondering if anybody sees and error in my coding? And can point me in the right direction **<head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link href="basiclayout.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="wrapper"> </div> <div id="wrapper"> <div id="banner"></div> </div> </body> </html> ** ** body { font: 100% Verdana, Arial, Helvetica, sans-serif; color: #FFFFFF; margin: 0px; padding: 0px; text-align: center; } #wrapper { background: #FFFFFF; margin: 10px auto; position: relative; width: 770px; border: 1px solid #000000; text-align: left; } #banner { height: 110px; background-image:url(BannerCSS.jpg); background-repeat:no-repeat; } ** For some reason my banner doesnt fit right just leaves a white box above it. This is my first crack at CSS, And thanks for the help. http://img./v293/gamingheadquarters/BannerCodingproblem.jpg ----------- <div id="wrapper" </div> <div id="wrapper"> <div id="banner"></div> </div> if I remove the > by the smile it will go in the black box but it would fit correctly there is a white box on top of the sample banner and I cant get it right. Thanx for the help
|
|
inherit
16205
0
May 4, 2012 21:08:07 GMT -8
Imusion
722
November 2003
imusion
|
Post by Imusion on Jul 8, 2005 13:11:49 GMT -8
Well what exactly are you trying to do? I don't quite understand what you are trying to do.
|
|
inherit
8198
0
Jan 23, 2011 9:23:58 GMT -8
SportsGuyz
Master of the Games
2,314
March 2003
ps2man
|
Post by SportsGuyz on Jul 8, 2005 13:15:15 GMT -8
|
|
inherit
16205
0
May 4, 2012 21:08:07 GMT -8
Imusion
722
November 2003
imusion
|
Post by Imusion on Jul 8, 2005 15:37:01 GMT -8
Well I think you are trying to do it too complicated, if you think simple here is an example of what you can do:
<style> .headerborder{ border: 1px solid #000000; } </style>
<div align="center"> <div class="headerborder"><img src="BannerCSS.jpg" width="**" height="**" alt="Header" border="0"></div> </div>
So to explain the code, I'll start off by explaining how it is layed out.
I simply wrapped the whole thing in a div so I can center it using the align="center" tag.
Then inside it I add the header image then wrap it around with another div with a class headerborder, so we can apply the border.
The css:
.headerborder{ border: 1px solid #000000; }
That creates the solid 1 pixel border with a color of black.
|
|
inherit
The Jedi Master of Proboards PBS Oscars: Most Unique
6777
0
Nov 19, 2012 0:15:08 GMT -8
Tommy Huynh
Coffee isn't my cup of tea.
19,374
January 2003
swg2
|
Post by Tommy Huynh on Jul 8, 2005 16:06:22 GMT -8
ID's are meant to be used once, not twice. Use a class instead.
|
|
inherit
8696
0
Jan 3, 2024 23:35:38 GMT -8
The Dark Knight
Hope is a dangerous thing.
38,980
April 2003
avtar
|
Post by The Dark Knight on Jul 8, 2005 21:43:59 GMT -8
Using a class would just get it a little complicated.
|
|
inherit
8198
0
Jan 23, 2011 9:23:58 GMT -8
SportsGuyz
Master of the Games
2,314
March 2003
ps2man
|
Post by SportsGuyz on Jul 9, 2005 5:41:49 GMT -8
Well I think you are trying to do it too complicated, if you think simple here is an example of what you can do: <style> .headerborder{ border: 1px solid #000000; } </style>
<div align="center"> <div class="headerborder"><img src="BannerCSS.jpg" width="**" height="**" alt="Header" border="0"></div> </div>
So to explain the code, I'll start off by explaining how it is layed out. I simply wrapped the whole thing in a div so I can center it using the align="center" tag. Then inside it I add the header image then wrap it around with another div with a class headerborder, so we can apply the border. The css: .headerborder{ border: 1px solid #000000; }
That creates the solid 1 pixel border with a color of black. Thanks a Million
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Jul 11, 2005 7:04:56 GMT -8
Use code support next time please
|
|