Solved

Drupal

Posted on 2013-05-24
4
395 Views
Last Modified: 2013-05-26
Please look at http://amcindustries.com.previewdns.com/content/landscape-irrigation-%E2%80%93-sprinklers.

Note the blank space underneath the picture BEFORE the text.

Now look at http://amcindustries.com.previewdns.com/content/smart-controls.

Note there is no blank space.

See attached images of the block with this in it for sprinklers & the block for Smart Controls.

Why aren't they both the same?

Why is it SO DIFFICULT in Drupal to insert blank space on a page?
block-smart-controls.jpg
block-sprinklers.jpg
0
Comment
Question by:Richard Korts
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
nanharbison earned 350 total points
ID: 39195784
Did you try using some CSS to the image? You have already:
<img style="float: left;" src="http://amcindustries.com.previewdns.com/sites/default/files/smart_controls.jpg" alt="">
so add to the style:
style="float: left; margin-bottom:15px;"
or whatever spacing you want.
By the way, you should ALWAYS fill out the alt on images, use them for marketing, like alt="excellent irrigation company sprinkler system smart controls"
or something better than that of course!
0
 
LVL 17

Expert Comment

by:nanharbison
ID: 39195789
Also, on the page that does have spacing, you are using <br> which is out of date, you should be using: <br />
HTML that doesn't have a closing tag should always be formed this way.
Did you add the <img> tag? it is also missing the forward slash: <img etc etc  />
0
 
LVL 13

Assisted Solution

by:Arrow_1
Arrow_1 earned 150 total points
ID: 39196329
The proper way to insert the space would be to add a margin below the image as nanharbison mentioned. But to point out why the line breaks aren't working is because of the css, not Drupal. The behavior would be the same using plain html and css. The reason your line breaks aren't working is because the image is floated left and there is a slight gap to the right of it. This is making your line breaks render to the right of the image rather than below it. The other page is working because the image takes the full width, so there is no room for the line breaks. If you remove the float from your images, the line breaks will appear below them.
0
 

Author Closing Comment

by:Richard Korts
ID: 39198275
I discovered the extra space on the right related to a different problem. My intent had been to have the image the width of the page area.

Thanks!!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question