Current location: Hot Scripts Forums » General Web Coding » CSS » Positioning in CSS


Positioning in CSS

Reply
  #1 (permalink)  
Old 01-10-07, 12:34 PM
zoliky's Avatar
zoliky zoliky is offline
Aspiring Coder
 
Join Date: Jun 2006
Posts: 537
Thanks: 0
Thanked 0 Times in 0 Posts
Positioning in CSS

Someone explain for me what is the difference between "absolute positioning" and "realtive positioning" in CSS ?

The absolute positioning don't see the borders set in body?
for example:

Code:
body {
	margin-top: 50px;
	margin-bottom: 10px;
	margin-left: 70px;
	margin-right: 40px;
}
This is my absolute positioning code:


Code:
#box1 {
	position:absolute;
	top: 50px;
	left: 50px;
}
And relative positioning:


Code:
#box2 {
	position:relative;
	left: 350px;
	bottom: 150px;
}
Reply With Quote
  #2 (permalink)  
Old 01-11-07, 07:18 AM
pkcidstudio's Avatar
pkcidstudio pkcidstudio is offline
Coding Addict
 
Join Date: Nov 2005
Posts: 332
Thanks: 0
Thanked 0 Times in 0 Posts
__________________
learning like everyone else
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS inspiration webzen CSS 3 03-05-08 02:47 AM
Cross-browser CSS Help Arctic CSS 10 12-26-06 11:21 AM
IE and Firefox Table + CSS Help iidavidii HTML/XHTML/XML 5 12-04-06 11:29 AM
Footer positioning problem with CSS greymoose CSS 1 08-10-06 12:26 AM
Use of CSS within PHP CutAndPaste PHP 5 07-11-05 07:27 AM


All times are GMT -5. The time now is 01:58 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.