Hi,
Have a problem. How can I set layers in the middle of a page or related to the page?
Use also tables on the same page a that no problem with the allign option. So, my question is: how can I set layers on a position that variable is to the page properties? Have tryed to set a xx% (percent)but that don't works.
Thanks.This is how to center a layer:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>center contents</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
body {text-align: center}
#alignment {text-align: left; margin: auto auto; width:60%;}
p {background:red;}
-->
</style>
</head>
<body>
<div id="alignment">
<p>contents</p>
</div>
</body>
</html>
You can use relative and/or absolute positioning, <!-- m --><a class="postlink" href="http://www.w3schools.com/css/pr_class_position.aspThanks">http://www.w3schools.com/css/pr_class_p ... .aspThanks</a><!-- m --> for your reply, but...
This can I use to center the layer exactly in the center. What if I want the layer for example at 1/3 on the left?
Thanks.position:relative; left:33%;Thanks for your reply but...
It don't works. I have tryed several things but without a good result. Where do I have to set the 'position:relative; left:33%;'
I have a layer with fixed dimensions and I want it positioned at 1/3 from the left of the page.
Thanks for your help.
I think the last time (for this problem) ;-)Please, can someone help me with this problem.
Thanks a lot !position:relative; left:33%;
is a css statement. You need to put it in a css file and then link to it. Or you could put it in a style block in the head of your document, or you could just throw it in as inline style statements.
Go and read up on css at <!-- m --><a class="postlink" href="http://www.w3schools.com/css/default.asp">http://www.w3schools.com/css/default.asp</a><!-- m --> .
it should give you plenty of ideas and make your coding life MUCH easier. If you are still having problems than shw us you page.
Have a problem. How can I set layers in the middle of a page or related to the page?
Use also tables on the same page a that no problem with the allign option. So, my question is: how can I set layers on a position that variable is to the page properties? Have tryed to set a xx% (percent)but that don't works.
Thanks.This is how to center a layer:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<title>center contents</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
<!--
body {text-align: center}
#alignment {text-align: left; margin: auto auto; width:60%;}
p {background:red;}
-->
</style>
</head>
<body>
<div id="alignment">
<p>contents</p>
</div>
</body>
</html>
You can use relative and/or absolute positioning, <!-- m --><a class="postlink" href="http://www.w3schools.com/css/pr_class_position.aspThanks">http://www.w3schools.com/css/pr_class_p ... .aspThanks</a><!-- m --> for your reply, but...
This can I use to center the layer exactly in the center. What if I want the layer for example at 1/3 on the left?
Thanks.position:relative; left:33%;Thanks for your reply but...
It don't works. I have tryed several things but without a good result. Where do I have to set the 'position:relative; left:33%;'
I have a layer with fixed dimensions and I want it positioned at 1/3 from the left of the page.
Thanks for your help.
I think the last time (for this problem) ;-)Please, can someone help me with this problem.
Thanks a lot !position:relative; left:33%;
is a css statement. You need to put it in a css file and then link to it. Or you could put it in a style block in the head of your document, or you could just throw it in as inline style statements.
Go and read up on css at <!-- m --><a class="postlink" href="http://www.w3schools.com/css/default.asp">http://www.w3schools.com/css/default.asp</a><!-- m --> .
it should give you plenty of ideas and make your coding life MUCH easier. If you are still having problems than shw us you page.