CSS Absolute Position Help

60 views
Skip to first unread message

village

unread,
Mar 2, 2010, 1:49:44 AM3/2/10
to dompdf
Hello,
I am confused about CSS absolute positioning as, when i try the
following code on the live demo, it is working fine, but not working
when i am going to run it on local server. Code is

<html>
<head>
<style>

.wrapper{
width: 500px;
height: 650px;
position: relative;
}
.username {
position: absolute;
top: 150px;
left: 560px;
font-size: 36px;
}

</style>
</head>

<body>

<div class="wrapper">
<div class="image">Test</div>
<div class="username">Absolute Position</div>
</div>

</body>
</html>

Please help, am i missing something at local ?

BrianS

unread,
Mar 2, 2010, 8:39:24 AM3/2/10
to dompdf

Do you mean the live demo at digitaljunkies.ca? If so, that is using a
more up-to-date version of the software than the last stable release
(v.0.5.1). v0.5.1 does not support absolute positioning, but the
current pre-release (v0.6.0 alpha 2) does.

Reply all
Reply to author
Forward
0 new messages