Solved

CSS Icons not sitting correctly?

Posted on 2008-10-29
11
268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change Background Color of Website 5 34
Help in good tutorials for PHP, HTML and CSS 6 52
CSS Style Effect 2 18
Put check in your check box 7 16
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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 rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

740 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