Posted by Jonathan N. Little on 12/23/06 20:48
Bundy wrote:
> dorayme wrote:
>> In article <458ca368$0$5708$9a6e19ea@unlimited.newshosting.com>,
>> Bundy <bigbadbundyREMOVETHIS@vfemail.net> wrote:
>>
>>> I have created a web page for a 1024x768 display.
>>>
>>> The web pages have a left and right coloumn which are not important.
>>> The important content is in the centre.
>>>
>>> So I was wondering if it was possible for visitors with lower
>>> resoultion of say 800x600 to have the wep page opened centred in the
>>> browser?
>>>
>>
>>
>> Take a look at <http://www.pmob.co.uk/temp/3col-content-first.htm>
>>
>
> Thanks but it does not centre the page when opened in a broswer by a
> visitor with a lower screen resolution. I have tried it in IE7 and FF 2.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1">
<meta http-equiv="content-language" content="en-us">
<title>Centered block</title>
<style type="text/css">
.demofixed { color: white;
background-color: red;
width: 600px;
position: absolute;
left: 50%;
margin-left: -300px;
}
</style>
</head>
<body>
<div class="demofixed">
This is a fix width centered block. I am <strong>not</strong>
advocating that one should do this, only that it can be done.
</div>
</body>
</html>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|