Solved

CSS Icons not sitting correctly?

Posted on 2008-10-29
11
266 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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
 
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&task=view&id=53&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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
manage footer size 4 56
Border and image sizing 5 20
flex div overflows its container 4 22
DataTables + iCheck + pagination Issue 2 23
"I want to put my photos online, but I don't want them stolen.  What settings should I use?" When You Put Photos Online First and foremost, any digital file published on the WWW can be copied, stored, modified, retransmitted, etc.  Remember Naps…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

803 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