I want to show a "...more" text for a long name descrition. so far I have this:
HTML:
<div class="teaser">text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes heretext goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes heretext goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here text goes here</div>
<div class="complete"> this is the
complete text being shown</div>
<span class="more">more...</span>
CSS:
.complete{
display:none;
}
.more{
background:lightblue;
color:navy;
font-size:13px;
padding:3px;
cursor:pointer;
float: right;
}
.teaser {
height: 20px;
width: 60%;
overflow: hidden;
}
currently it floating towards to the extreme right, and I want to place it next to the where the sentence truncates based on the width and height I have added.- but I'm not able to figure out the bets way to handle this with CSS class. any ideas?