?
Solved

Simple CSS positioning issue

Posted on 2012-03-23
4
Medium Priority
?
202 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 2000 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

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