Solved

CSS Icons not sitting correctly?

Posted on 2008-10-29
11
263 Views
Last Modified: 2012-05-05
Hi,

I've been looking at this problem for a day or two now and I really can't  get to the bottom of the issue!

Go To:

http://www.hotelresevationsystem.com/index.php?option=com_reservations&task=destinations&Itemid=1

And view the country icons they are all unordered and not sitting correctly on the page, can anyone give me an idea how to correct this?

Thanks in advance.

Lee
0
Comment
Question by:wickedpassion
  • 6
  • 4
11 Comments
 

Expert Comment

by:hague_m
ID: 22831971
How would you like them to 'sit'?
0
 
LVL 5

Author Comment

by:wickedpassion
ID: 22832021
In concentric rows of three
0
 
LVL 30

Expert Comment

by:Steggs
ID: 22832117
Hello,

add float:left; to

div.reserv50 img, img.resimg {reservations.css (line 86)
}

and div.resdestbox {reservations.css (line 85)
}

you will also need to change .clear to

.clear {standard.css (line 48)
clear:both;
}
0
 
LVL 5

Author Comment

by:wickedpassion
ID: 22832375
I have done as you say but the section that contains the flags drops to the bottom of the page plus the flags have no space between them, I guess I should have been a little more descriptive in the question so sorry for that!

How can I fix this though?

:-)
0
 
LVL 5

Author Comment

by:wickedpassion
ID: 22832559
It was the mod to standard.css that made the box extend, I've removed this edit for now.

Lee
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 30

Expert Comment

by:Steggs
ID: 22832659
Hmmm, ok a different approach:

.resdestbox {
min-height:54px;
height:auto !important;
height:54px;
position:relative
}
.resdestbox img {
left:2px;
position:absolute;
top:2px
}

Then the information next to each image needs to go in its own container div:

<div class="resdestboxInfo">

<span class="restitle"><a class="restitle" title="England" href="index.php?option=com_reservations&amp;task=location&amp;lid=4&amp;Itemid=1">England</a></span><br/>1 Hotel<br/><a style="font-size: 0.9em;" class="reservlink" title="England" onclick="window.open('http://www.hotelresevationsystem.com/index2.php?option=com_content&amp;task=view&amp;id=53&amp;Itemid=1', 'LocationDetails', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=700,height=500,directories=no,location=no');" href="javascript:void(null);">Area information</a>

</div>

and css:

.resdestboxInfo {
margin-left:56px
}


Hope this helps
0
 
LVL 5

Author Comment

by:wickedpassion
ID: 22832891
How do I add the code below?

i.e. Which file needs to be edited?


<div class="resdestboxInfo">
 

<span class="restitle"><a class="restitle" title="England" href="index.php?option=com_reservations&amp;task=location&amp;lid=4&amp;Itemid=1">England</a></span><br/>1 Hotel<br/><a style="font-size: 0.9em;" class="reservlink" title="England" onclick="window.open('http://www.hotelresevationsystem.com/index2.php?option=com_content&amp;task=view&amp;id=53&amp;Itemid=1', 'LocationDetails', 'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=700,height=500,directories=no,location=no');" href="javascript:void(null);">Area information</a>
 

</div>

Open in new window

0
 
LVL 30

Accepted Solution

by:
Steggs earned 500 total points
ID: 22832918
Ok, dont worry about. You can do this:

.resdestbox {
min-height:54px;
height:auto !important;
height:54px;
padding-left:55px;
position:relative;
}


Notice the padding-left entry
0
 
LVL 5

Author Comment

by:wickedpassion
ID: 22833088
I can see now why you're a genius, blooming superb mate thank you so much!!!!!!!!!!!!!!!!

:-)

Lee
0
 
LVL 5

Author Closing Comment

by:wickedpassion
ID: 31511197
If you need a css solution Steggs is the man!!!!!!
0
 
LVL 30

Expert Comment

by:Steggs
ID: 22833114
Thanks Lee! Glad to be of service! :D

Farewell
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

762 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now