Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

<br/> and <p> , anything else?

Featured Replies

I am trying to control my layout design by using the line break and p tags between divs. Using 2 paragraph tags (<p></p><p></p>) creates too much of a gap and <br/> too little of a gap. How can I better control the spacing of my divs?

 

Thanks

You should use CSS then you can get the exact amount of space you want.

 

<div class="myClass">
<p>This is my content</p>
</div>
<div class="myClass">
<p>This is some more content</p>
</p>

 

And the CSS:

 

.myClass {
margin-bottom: 20px;
}

you can use a bottom padding or margin on <p>.

 

so in your css, add...

 

p {margin-bottom: 1em}; or whatever you want it to be

 

 

that overides the browser default paragraph margin, which is what is determining the spacing between paragraphs at the minute.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.