Solved

Adjust text placement next to images

Posted on 2013-06-23
6
282 Views
Last Modified: 2013-06-23
I am on the 91st page out of 190 restyling an old table based wesite with css & html5
in this page i have 6 small images in the center of the page with text to the right of each image
http://roofgenius.com/Price_Per_Sq_Pages/Test.asp
i fooled with the text placement enough to make it acceptable by using floats and <br> tags
in the 3rd image from the top with the text: ( "In the roof pitch drop down list select 6/12")
 I would have moved the text down a few px if i knew how.
If i remove the floats the text is too low against the image.
How do i do this ?
0
Comment
Question by:isnoend2001
  • 3
  • 3
6 Comments
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39269466
I did not test your code with any validator do it yourself. One of the important part of your page is you are using padding-top that is the main problem. Decrease the value of padding like below and you are not using p tag in that line add <p> tag.
.section_area .middlepanel p {
    color: #000000;
    font: 13px/18px Verdana,Geneva,sans-serif;
    padding-top: 14px;
}

Open in new window

0
 

Author Comment

by:isnoend2001
ID: 39269475
Thanks  jagadishdulal, but I cannot change the style sheet as many pages are already
referring to the styles and that might mess them up
0
 
LVL 15

Expert Comment

by:Jagadishwor Dulal
ID: 39269484
Again you can manage that line add a separate class for that line.
0
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.

 

Author Comment

by:isnoend2001
ID: 39269519
Thanks  jagadishdulal could you give an example ?
0
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 500 total points
ID: 39270107
Add <p class="lower_spacer">Content here.</p>

.lower_spacer{
             padding-top: 14px;
}

Open in new window

0
 

Author Closing Comment

by:isnoend2001
ID: 39270151
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

So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
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).

920 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

16 Experts available now in Live!

Get 1:1 Help Now