Jump to content

Div And H1 On Same Line


Recommended Posts

Most of us use the universal selector to set padding and margins to 0 for all page elements:* {padding: 0;margin: 0;}You'll notice the difference a lot in things like heading elements. And if you really want it at the very top, you'll change that 5px margin in your h1 definition.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...