Do u mean margin-left will move itself? But If I use "left", do you mean it will move the container left some numbers by the edge of the whole document?
Do you mean any Html container has a container to include itself?
No, It's called Viewport. Viewport is nothing but the viewable area of the Web browser excluding the menus, footer etc..,
ToughMan
And margin-left its inner thing between the container's left distance?
Yeah, It's sets the margin for the elements, if it's within the element. If it's not nested within any element then it takes the Viewport and set the left margin for the element!
ToughMan
And left means the whole container between the web-page's distance???
As it sad in the earlier, it's acts differently based on the Position attribute(Absolute/Relative)!
ToughMan
Participant
1490 Points
635 Posts
Some layout questions
Feb 02, 2013 06:55 AM|LINK
1) Why do we usually prefer using "CSS+Div" instead of Table? Can anyone give us a sample to prove what he/she says?
2) What's the most difference between "left" and "margin-left"?
Plz draw an image to explain
Thx
rimagandhi
Participant
1563 Points
498 Posts
Re: Some layout questions
Feb 02, 2013 11:00 AM|LINK
http://stackoverflow.com/questions/3859801/difference-between-margin-left-and-left
Regards
Rima Gandhi.
Software Developer.
rimagandhi
Participant
1563 Points
498 Posts
Re: Some layout questions
Feb 02, 2013 11:03 AM|LINK
http://www.vanseodesign.com/css/css-divs-vs-tables/
http://www.sitepoint.com/forums/showthread.php?535196-Help-me-feel-less-guilty-using-tables-for-layouts
Regards
Rima Gandhi.
Software Developer.
ToughMan
Participant
1490 Points
635 Posts
Re: Some layout questions
Feb 03, 2013 03:57 AM|LINK
Thanks.
Do u mean margin-left will move itself? But If I use "left", do you mean it will move the container left some numbers by the edge of the whole document?
Or????
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Some layout questions
Feb 03, 2013 09:08 AM|LINK
Hi,
margin-left sets the margin of the element, where as the left sets the position of element with in the container and it also depends on the Position!
http://www.w3schools.com/cssref/pr_pos_left.asp
http://www.w3schools.com/cssref/pr_pos_left.asp
http://stackoverflow.com/questions/3859801/difference-between-margin-left-and-left
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
raju dasa
Star
14376 Points
2444 Posts
Re: Some layout questions
Feb 03, 2013 05:29 PM|LINK
Hi,
If u understand the CSS Box model, then u can understand the margin rule.
google for: css box model
or check this site for pic:
http://www.w3schools.com/css/css_boxmodel.asp
rajudasa.blogspot.com || blog@opera
ToughMan
Participant
1490 Points
635 Posts
Re: Some layout questions
Feb 04, 2013 12:49 AM|LINK
Hi all,
Do you mean any Html container has a container to include itself?
And margin-left its inner thing between the container's left distance?
And left means the whole container between the web-page's distance???
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Some layout questions
Feb 04, 2013 04:03 AM|LINK
Hi,
No, It's called Viewport. Viewport is nothing but the viewable area of the Web browser excluding the menus, footer etc..,
Yeah, It's sets the margin for the elements, if it's within the element. If it's not nested within any element then it takes the Viewport and set the left margin for the element!
As it sad in the earlier, it's acts differently based on the Position attribute(Absolute/Relative)!
Hope it helps u...
Roopesh Reddy C
Roopesh's Space
ToughMan
Participant
1490 Points
635 Posts
Re: Some layout questions
Feb 04, 2013 11:23 AM|LINK
Dear, thx
I'm not good at design……So can u tell us how to have a good design with CSS+Div?
roopeshreddy
All-Star
20143 Points
3327 Posts
Re: Some layout questions
Feb 04, 2013 01:44 PM|LINK
Hi,
Check this link - http://girlswhogeek.com/tutorials/2006/create-a-tableless-css-layout
Hope it helps u...
Roopesh Reddy C
Roopesh's Space