|
-
define margin using pixels or percent?
Hi there! This is my question.
Let's say I have two divs, div1 and div2. To define the top margin of div2 respect div1, I can do it in two ways using css.
top:20px;
margin-top:2%;
What's the best way to do it?? I am sorry because I know this is a stupid question, but I want to know the main differences between those two ways.
Thanks a lot!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks