Solved

Simple CSS positioning issue

Posted on 2012-03-23
4
194 Views
Last Modified: 2012-03-24
I am at a loss on how to do this.  It seems so simple.  I have three lines of text.  The middle line also contains an image that is a bit higher than the line height.  I do not want the image to increase the line height.  I want it to creep into the space of the line below it.  

Here is my sample mock up.
http://realpersona.com/test/line.html

Please give suggestions.
0
Comment
Question by:Thread7
[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 30

Expert Comment

by:LZ1
ID: 37757085
Try this:
<img src="btn_edit.jpg" align="top">
0
 
LVL 1

Author Comment

by:Thread7
ID: 37757805
Well good idea, but that just made the line gap at the bottom instead of the top of line #2.
http://realpersona.com/test/line_top.html
0
 
LVL 30

Expert Comment

by:LZ1
ID: 37758077
I'm not sure what you mean by

>> I do not want the image to increase the line height.  I want it to creep into the space of the line below it.  

Unless you position it absolutely, the entire line will have to make room for the image vertically.
0
 
LVL 17

Accepted Solution

by:
jrm213jrm213 earned 500 total points
ID: 37758304
For that specific example the best I can come up with without really messing with your layout is

 
<img align="top" src="btn_edit.jpg" style="vertical-align: bottom; margin-bottom: -6px;">

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CSS question 4 56
Horizontal Full Calendar using php 5 42
Save data in two Database, Asp 2 68
CSS - display the same fonts throughout website. 4 25
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

732 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