Alternative to margin-top?
# June 25, 2013 at 10:07 am
I am working on a website and am relatively new to CSS, I am wondering if there is an alternative to margin-top when positioning divs.
Right now I have everything where I want it to be, but if I move a div at the top, the divs below it also jump down or up, since I used margin-top.
Any thoughts?# June 25, 2013 at 10:15 am
This reply has been reported for inappropriate content.
Are you adding the margin to a class or an ID?
Classes and ID’s.
If you have “everything where I want it to be”, why are you moving divs?
Because if I did want to change something, it would be a bit more of a hassle to have to change the margin for the div I wanted to move, then the ones below it to put them back in place, maybe that’s the only way. I don’t know, I am just trying to learn.
MOD EDIT: Code Clip
You must be logged in to reply to this topic.