Hi everyone,
I am trying to get away from using floats when I dont have to but have run into a problem. Appreciate your input.
HTML
<div id="logos">
<ul>
<li class="youtube"><a href="http://youtu.be/?????????">Watch us on YouTube</a></li>
<li class="facebook"><a href="http://www.????????????????">Join us on Facebook</a></li>
<li class="tourismTick">Australian Tourism Accreditation</li>
</ul>
</div><!--END of logos-->
CSS
#logos {
width:900px;
height:40px;
background-color:#6CC;}
#logos li {
display:inline-block;}
#logos li a.youtube{
width: 230px;
height:40px;
margin: 0 0 0 10px;
background: url(../images/home/YouTube_Bg.png) no-repeat;}
#logos li a.facebook{
width: 230px;
height:40px;
background: url(../images/home/Facebook_Bg.png) no-repeat;}
#logos li.tourismTick{
width: 360px;
height:40px;
margin: 0 0 0 100px;
padding:10px 0 0 46px;
background: url(../images/home/tourism_tick.png) no-repeat;}
I tried your suggestion, but it makes no difference. Thanks for trying. It seems like by placing the classes to the li a's no styling is being applied.. I thought I may have a space in wrong place and tried a space after the a but no luck there either. Starting to pull my hair out on this one, I know its something simple.
#logos li a .youtube{
width: 230px;
height:40px;
margin: 0 0 0 10px;
background: url(../images/home/YouTube_Bg.png) no-repeat;}
Actually, I see what your problem(s) are:
#logos li a.youtube
<li class="youtube"><a href="http://youtu.be/?????????">Watch us on YouTube</a></li>
is wrong - you don't have the class of youtube on the a element, you have it on the li
so it needs to be
<li class="youtube"><a href="http://youtu.be/?????????">Watch us on YouTube</a></li>
#logos li .youtube
same for facebook
#logos li .facebook
since you don't have a link on the last one, #logos li .tourismTick seems correct (notice the space between "li" and ".tourism"), but if you have background images used for href links, they will have to be display: block
#logos li {
display:inline-block;}
You should be ok with just display: inline;
If that doesn't solve everything, send me your images so I can reconstruct.
Wow thankyou so much! So very much appreciated!
and if I could just get the green tick down a bit inline with the other logos, I would be zen lol.
CSS
#logos {
width:900px;
height:60px;
background-color:#6CC;}
#logos li.youtube{
display:inline-block;
width: 200px;
height:40px;
margin: 10px 0 0 30px;
padding:10px 0 0 40px;
background: url(../images/home/YouTube_Bg.png) no-repeat;}
#logos li a {
font:14px "Trebuchet MS", Arial, Helvetica, sans-serif;}
#logos li.facebook{
display:inline-block;
width: 200px;
height:40px;
margin: 0 0 0 0;
padding:10px 0 0 46px;
background: url(../images/home/Facebook_Bg.png) no-repeat;}
#logos li.tourismTick{
display:inline;
font:14px "Trebuchet MS", Arial, Helvetica, sans-serif;
width: 360px;
height:40px;
margin: 0 0 0 0;
padding:20px 0 5px 46px;
background: url(../images/home/tourism_tick.png) no-repeat;}
Assuming all your images are the same size, check your padding. They are all different. Since your font is the same size, your top and bottom paddings should be the same. tourismTick has more padding than the others. The first 2 links have a total of 10px padding for top and bottom combined. The last one has a total padding of 25px top and bottom.
Hi yes there was a reason for this madness
If I have the same padding the image is cut off. So much for using unordered lists. Think I will stick to floats. Now that I am sooo close can you advise as to why this image is being cut off when all images are exactly the same size and I am sure the fonts are different for the Australian Tourism.
North America
Europe, Middle East and Africa
Asia Pacific