- This topic is empty.
April 1, 2016 at 7:35 pm #240115drone4fourParticipant
Here is my test case: http://codepen.io/Angeles4four/pen/dMVZxd
Notice the copyright is over to the left? I’m trying to position it at the center. In my CSS I include the position property (center) which is why I can’t figure out why it is still sitting way over at the left.
Thanks for your attention.April 2, 2016 at 12:45 am #240116AtelierbramParticipant
In my CSS I include the position property (center)
When you read up on the CSS
position-property you will see that there are five possible values:
static, relative, absolute, fixedand
You can center a block-level element with the
margin-leftvalues set to
Fork of your demo Maybe not directly related to this, but another thing to keep in mind is trying to use HTML markup that is “as semantic as possible”, so always try to use valid HTML-elements, like
p-tags for paragraphs, for example. When consistently applied you will find a lot of the time you don’t need things like
br-tags to force line-breaks.April 2, 2016 at 1:07 pm #240143
- The forum ‘CSS’ is closed to new topics and replies.