Solved

Drupal

Posted on 2013-05-24
4
398 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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