rockinaway Posted April 4, 2008 Share Posted April 4, 2008 Information on my query can be seen here: http://forums.digitalpoint.com/showthread.php?t=783195 Thanks Link to comment https://forums.phpfreaks.com/topic/99593-offset/ Share on other sites More sharing options...
rhodesa Posted April 4, 2008 Share Posted April 4, 2008 You want {position: absolute; top: ###px; left: ###px;} That will move the box the specified number of pixels from the top left corner of the page, or the closest parent with {position: relative;} (aka, you may want to make you table position:relative; Link to comment https://forums.phpfreaks.com/topic/99593-offset/#findComment-509512 Share on other sites More sharing options...
rockinaway Posted April 4, 2008 Author Share Posted April 4, 2008 Hmm, that gave me a slight problem. http://www.etcworld.co.uk/ That is the result :S Link to comment https://forums.phpfreaks.com/topic/99593-offset/#findComment-509520 Share on other sites More sharing options...
rhodesa Posted April 4, 2008 Share Posted April 4, 2008 Try making the TD position relative, and then add a DIV inside it for the logo box, and position the DIV absolute Link to comment https://forums.phpfreaks.com/topic/99593-offset/#findComment-509529 Share on other sites More sharing options...
rockinaway Posted April 4, 2008 Author Share Posted April 4, 2008 Ok.. Done that, I have the following code for HTML: <td style="position:relative;" width="35%"> <div class="logo-box"> Test </div> </td> And CSS: .logo-box { background-color: #262626; background-image: url("images/bg.gif"); background-position: top left; background-repeat: repeat-x; text-align: left; padding: 0px; width:35%; position: absolute; top: 10px; left: 10px; } And you can see the result: http://www.etcworld.co.uk/ Still not right.. Does the same, but there is the space for the shape in the header.. just the actual DIV isn't aligned to it :S Link to comment https://forums.phpfreaks.com/topic/99593-offset/#findComment-509533 Share on other sites More sharing options...
rockinaway Posted April 4, 2008 Author Share Posted April 4, 2008 No worries, I have fixed it Link to comment https://forums.phpfreaks.com/topic/99593-offset/#findComment-509548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.