HTML help

FerretFreak

New Member
Messages
28
Reaction score
0
Points
0
Ok, I'm making a webpage, and I want a big black bar with a width of about 260px on the far left-hand side that goes all the way up the screen. Life, it doesn't leave any space between it and top/bottom or the side.

...this is hard to explain.

If you don't get what I mean, I'll make a picture or something.
 

chitwa

New Member
Messages
128
Reaction score
0
Points
0
The proble is in alignment and the spaces I presume? to ensure the black goes all the way down, use tables to format data on the page. Set the left most column of the table to black. For the sides, set a css style on the margins. Set all margins ie left right up, down to 0. set spacing to 0 also. or in the body tag set all margins to 0. This will remove the spaces from the sides.
 
B

binki39

Guest
add this in your css sheet

body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}

this will eliminate the space in the top and the bottom
 

S_W_A_T

New Member
Messages
292
Reaction score
0
Points
0
---------
"All codes below have no space after and before the < >"
---------
No need add into your css sheet, juz add this in your html will do;
< STYLE type="text/css" >
...css codes goes here...
< /style >
-----
If you meant by overlapping anything on the side, i suggest you use < div >.
Get a a black pic with the same amount of width and height, then add the code in your html,
< div class="post" style="position:absolute; top:<your amount>px; left:<uour amount>px" >
Hope this helps...
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
So did you get it to work? If you didn't, post teh link to that page here.
 

IamShipon1988

New Member
Messages
942
Reaction score
0
Points
0
i prefer using a seperate css file, so if you have a multipage site, you can simply place a link to search for the css file, instead of rewriting the code on each page, which comsumes a lot of time. tnx binki39, that's good to know about css files
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
<link rel="stylesheet" href="style.css" type="text/css" />

Yea, just using something like that is much much easier.
 

chitwa

New Member
Messages
128
Reaction score
0
Points
0
OK.You can also add this to your body tag i.e
<body leftmargin="0" rightmargin="0" topmargin="0" bottomargin="0">
 
N

Nathan

Guest
I prefer div layers.

<div leftmargin="0" rightmargin="0" topmargin="0" bottomargin="0">

Much cleaner in appearence.
 
Top