Jump to content

Recommended Posts

ok, so i have a background image for my login and i want several boxes floating on top i used the CSS coding

 

#inner {
margin: 0 auto;
padding: 6px;
width: 33%;
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: bold;
font-style: italic;
color: #CCC;
position: absolute;
text-align: center;
top: 176px;
left: 297px;
}

 

but however this doesn't always go in the right place i want, for example if i use different browsers it changes it place on the page or if there is a different screen resolution then it changes its place on the page

 

i need some help on this please how can i keep it on the same place where i set it?

okay, some browsers pixels are screwy, like firefox is a lil bulkier in my opinion. but what you could try doing, is setting left and top to a percentage.. or use javascript to find out the precise available height in your browser window..

 

however, your best bet, is to just develop with lets say an EXPECTED width.. so if you EXPECT 1,000 pixels wide.. or 900 atleast you KNOW where the center of 900 is,

 

((900 - WidthOfElement) / 2) would be where you would start your element.. this doesn't AT ALL fall under PHP HELP sadly..

 

but I hope I helped atleast a little lol

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.