Click to See Complete Forum and Search --> : Lines On Left And Right


Skulltower
01-01-2007, 05:13 AM
how to do that on left side and right side there would be a line and on center would be you content? i should look like: www.l2j.lt

Corey Bryant
01-01-2007, 10:45 AM
The first two things that come to mind are a background image in a divide or a border on the divide.

grumpyoldtechs
01-01-2007, 11:54 AM
you could do it like this

<div style="border:1px solid #CCCCCC; border-top:0; border-bottom:0;">
your content
</div>

the code above is by no means the best way to do it (styles should be in a style sheet).

or you could have a 700-760px by 1px image which a line/small gradient at each end and have it as a background image of a <div> container.

dont use the site you linked from as an example the coding is shockingly bad (most likely photoshop export)

Skulltower
01-01-2007, 12:49 PM
then how to make that those lines would be a little to left? like:

| Content |

grumpyoldtechs
01-01-2007, 01:23 PM
i don't get what you mean?

do you mean something like:

add this to your style sheet:
#wrapper{
border:1px solid #CCCCCC;
border-top;
border-bottom:0;
margin:0 auto;
padding-left:10px;
width:700px
min-height:500px;
}

this in your html file:
<div id="wrapper">
some content
</div>

Skulltower
01-01-2007, 01:50 PM
it looks like: http://88.118.204.69/pradedam/it-is.bmp
and i want it to look like: http://88.118.204.69/pradedam/it-should.bmp

grumpyoldtechs
01-01-2007, 05:01 PM
add margin-left:150px; to the css i gave you


to make it how you want decrease the width increase the margin-left and margin-right.


width:400px;
margin:0 200px 0 200px;


might work better

Skulltower
01-02-2007, 03:58 AM
thank you.