Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
spynka
regular


Reg'd: Mon
Posts: 321
Positioning
      #35334 - Sat Jan 17 2004 07:38 PM

Could someone please tell me the code using CSS i would have to use to place something in an exact position on a web page. Thanks


Post Extras: Print Post   Remind Me!   Notify Moderator  
SandRogue
regular


Reg'd: Wed
Posts: 97
Loc: England
Re: Positioning [Re: spynka]
      #35339 - Sat Jan 17 2004 08:02 PM

Heres the answer
lets say i wanted to place a medium heading 253px to the left and 57px down
the code would look like the following (this code is placed in between the <head and </head> tags

<style type="text/css">
< ! - - (remove spaces)
h2 { position: absolute; left: 253px; top: 57px }
- - > (remove spaces)
</style>

if using as part of an inline style then it would look like the following

<h2 style="position: absolute; left: 253px; top: 57px">My medium heading</h2>

You dont need to use pixels, you can use pts,ems,in,cm,mm etc.....

hope this helps


Post Extras: Print Post   Remind Me!   Notify Moderator  
spynka
regular


Reg'd: Mon
Posts: 321
Re: Positioning [Re: SandRogue]
      #35358 - Sat Jan 17 2004 11:09 PM

Thanks SandRogue


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 7 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 79

Contact Us | Privacy statement Main website