PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Sep 30, 2020 4:34 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Feb 20, 2015 2:43 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom

I'm trying to do what I see on many web sites, with a little icon is next to a text line, and then are perfectly lined up - ie, the bottom of the text isn't baseline ot the image, but lined up nice.

IS this page similar? Or is there a way to do it but with text and an image?

Syntax: [ Download ] [ Hide ]
<style>
#full_image {    
 margin:0;
  padding:0;    
  list-style:none;
  white-space: nowrap;
  overflow:hidden;
  position:absolute;
 }

#full_image  li {  
 display: inline;
}
#full_image  li img{  
 margin:0 auto;
  max-width:100%
}
</style>

<ul id="full_image">
  <li><a href="#"><img src="http://i.telegraph.co.uk/multimedia/archive/01636/saint-tropez-beach_1636818c.jpg" alt="" width='50px'/>hi </a></li>
  <li><a href="#">Welcome</a></li>
 
 </ul>

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Fri Feb 20, 2015 2:48 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
Do you have an example of what you're trying to achieve?

_________________


Top
 Profile  
 
PostPosted: Fri Feb 20, 2015 2:51 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
Here's a hosting company in the UK.
Look at the little icons in the footer.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
PostPosted: Fri Feb 20, 2015 2:55 pm 
Offline
Moderator
User avatar

Joined: Tue Nov 09, 2010 3:39 pm
Posts: 6425
Location: Montreal, Canada
Those are .

_________________


Top
 Profile  
 
PostPosted: Fri Feb 20, 2015 3:10 pm 
Offline
DevNet Master

Joined: Wed Oct 08, 2008 3:39 pm
Posts: 4434
Location: United Kingdom
Brilliant. thank you.

_________________
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group