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.

Too much space beneath image. . . how do I close up?

Featured Replies

Hi

 

Help needed. . .

 

Client wants to use words as an image and there's too much space/leading beneath it. How do I close up?

 

<img src="express.gif alt="Express Reinforcement"/>

<p>Cut and bent to your schedule. Reinforcing Mesh, Reinforcing Rod - Hi-tensile and Mild Steel plus all accessories.</p>

post-7274-126409460653_thumb.gif

Have you used a CSS reset? If not, you probably need to remove unwanted margin and/or padding in your css file like so:

html

<img class="class1" src="express.gif alt="Express Reinforcement"/> 
<p class="class1">Cut and bent to your schedule. Reinforcing Mesh, Reinforcing Rod - Hi-tensile and Mild Steel plus all accessories.</p>

 

css

.class1 {margin:0;padding:0;}

 

If they are too close together after this, you can increase the margin or padding. Hope that helps :)

  • Author

Thanks notbanksy - I have fiddled about with margins and padding and hopefully got it right. I didn't realise I could put a class on images - well I thought it would be possible but didn't realise it went after img! So double thanks needed here.

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.