Jump to content

[SOLVED] CSS positioning relative to browser window


stockton

Recommended Posts

Is it possible to cause some text to appear relative to the top left of the browser window rather than the top left of its "container"?

I have to modify an existing page and have tried adding the following to the CSS script:-

.counterMT {
    position:fixed;
    top:3px;
    left:1px;
    }

and tried using it via

<class="counterMT"><font color=white><?php echo $NumMembersServed ?>Members Issued><br/>Tickets Issued = <?php echo $NumTicketsIssued ?></font> 

but this stays relative to its "container" rather than relative to the browsers window.

Link to comment
Share on other sites

<class="counterMT">

 

This tag doesn't exist. There is no <class> tag. You apply a class to another tag. The problem was, you were applying a classname to ...nothing! There was no tag type in there.

 

I'm surprised that it did anything, since it was an invalid syntax, although whatever browser you were using (I'm guessing IE?) let it slide.

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.