Jump to content

Offset?


rockinaway

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.