Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Drupal

Posted on 2013-05-24
4
Medium Priority
?
406 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 1400 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:Aaron Feledy
Aaron Feledy earned 600 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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