Solved

Drupal

Posted on 2013-05-24
4
391 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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 …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now