Ok, I give up. This totally does not work. Here is my HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Wicket Examples - helloworld</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<div id = "wicket-mainNavigation"><wicket:panel>
<a href="index.html"><h1>Wicket Examples</h1></a>
<p id="titleblock">
<b><font size="+1"><span id =
"wicket-exampleTitle">helloworld</span></font></b>
</p>
</wicket:panel></div>
<div style = "text-align: center; margin-left: auto; margin-right:
auto" id = "wicket-box"><wicket:border>
<div style = "background-color: #333333; background-image: none;
width: 10%" id = "wicket-top">
<div style = "background-position: right top;
background-repeat: repeat-y" id = "wicket-right">
<div style = "background-position: left bottom;
background-repeat: repeat-x" id = "wicket-bottom">
<div style = "background-image: none" id = "wicket-left">
<div style = "background-image:
url(GetRoundCorner?size=10&type=top-left&background=ffffff);
background-repeat: no-repeat; background-position: left top" id =
"wicket-topLeft">
<div style = "background-image:
url(GetRoundCorner?size=10&type=top-right&background=ffffff);
background-repeat: no-repeat; background-position: right top" id =
"wicket-topRight">
<div style = "background-image:
url(GetRoundCorner?size=10&type=bottom-right&background=ffffff);
background-repeat: no-repeat; background-position: right bottom" id =
"wicket-bottomRight">
<div style = "background-image:
url(GetRoundCorner?size=10&type=bottom-left&background=ffffff);
background-repeat: no-repeat; background-position: left bottom;
padding: 15px 30px 30px 15px" id = "wicket-bottomLeft">
<div style = "width: 100%" id =
"wicket-contents">
<wicket:body/>
<div style = "color: #ffffff" id = "wicket-message">Hello
World!Hello World!Hello World!Hello World!Hello World!Hello World!Hello
World!Hello World!Hello World!Hello World!Hello World!Hello World!Hello
World!Hello World!Hello World!Hello World!Hello World!Hello World!Hello
World!Hello World!Hello World!</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</wicket:border></div>
</body>
</html>
Everywhere I look they say margin-left: auto; margin-right:
auto; should center horizontally but it does not work for me. I assume
you can reproduce this on your end? Any idea how to fix it?
Gili
On Wed, 09 Mar 2005 21:14:51 +0100, Eelco Hillenius wrote:
>There several ways of doing this. E.g. (came up with a quick google):
>http://www.quirksmode.org/css/centering.html
>
>Eelco
>
>Gili wrote:
>
>> I've got the border to work but now I want to have it center in
>>the middle of the page. I am not familiar with CSS in this domain: how
>>does one center nested <div>s within the page? I tried "style:
>>text-align=center" but it did nothing.
>>
>>Gili
>>
>>
>>
>>-------------------------------------------------------
>>SF email is sponsored by - The IT Product Guide
>>Read honest & candid reviews on hundreds of IT Products from real users.
>>Discover which products truly live up to the hype. Start reading now.
>>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>>_______________________________________________
>>Wicket-user mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>
>
>
>-------------------------------------------------------
>SF email is sponsored by - The IT Product Guide
>Read honest & candid reviews on hundreds of IT Products from real users.
>Discover which products truly live up to the hype. Start reading now.
>http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
>_______________________________________________
>Wicket-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user