Home
News
Product reviews
Website reviews
Forums
Competitions
Subscribe
Search
You are not logged in.
Login
|
New user registration
Main Index
|
Search
|
Active Topics
|
Who's Online
|
FAQ / HELP
Web Building
>>
Web design & build
Previous
Index
Next
Threaded
|
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
Edit
Reply
Quote
Quick Reply
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:
SandRogue
regular
Reg'd: Wed
Posts: 97
Loc: England
Re: Positioning
[Re:
spynka
]
#
35339
- Sat Jan 17 2004 08:02 PM
Edit
Reply
Quote
Quick Reply
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:
spynka
regular
Reg'd: Mon
Posts: 321
Re: Positioning
[Re:
SandRogue
]
#
35358
- Sat Jan 17 2004 11:09 PM
Edit
Reply
Quote
Quick Reply
Thanks SandRogue
Post Extras:
Pages: 1
Previous
Index
Next
Threaded
Rate this topic
Choose rating
1 star
2 star
3 star
4 star
5 star
Jump to
*General* -----
Feedback & Announcements
How to use this forum
Hints and Tips
Web User magazine feature suggestions
*Page-by-page magazine links* -----
Issue 194 Page-by-page links
Issue 195 – Page-by-page links
Archive - Page-by-page links
*Security* -----
Security help
Privacy and security discussion
Security news and updates
HijackThis logs help and analysis
*Operating Systems* -----
General PC-related
Windows XP help
Windows 9x help (including ME, 98 and 95)
Windows Vista help
*Internet Access* -----
Broadband help
Networking and Wi-Fi
Dial-up internet access
3G and mobile
Readers Recommend: ISPs
*Software* -----
BBC iPlayer, ITV Catchup, 4OD...
Email and instant messaging
Web browser software
Graphics & Imaging
Music and audio (formerly Multimedia)
Video software
Other Software
Readers Recommend: Software
Internet Explorer 7
*Hardware* -----
Computer components and accessories
Other Hardware
Readers Recommend: Hardware
*All Other Technical Help Topics* -----
eBay Help
All other topics
Archive
*Web Building* -----
Web design & build
Readers' Websites
*Welcome* -----
New here? How to get started
Open Forum
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