Solved

Drupal

Posted on 2013-05-24
4
394 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Drupal Image Gallery 2 306
Pass the Values from PHP Form to Web Service? 2 155
Warning, Page Not Found 2 88
How to Add a new page in custom theme drupal 7 3 165
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 …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

21 Experts available now in Live!

Get 1:1 Help Now