Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS Icons not sitting correctly?

Posted on 2008-10-29
11
Medium Priority
?
275 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:Mark Steggles
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
Technology Partners: 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:Mark Steggles
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:
Mark Steggles earned 2000 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:Mark Steggles
ID: 22833114
Thanks Lee! Glad to be of service! :D

Farewell
0

Featured Post

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!

Question has a verified solution.

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

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The first step to building an amazing About page is to figure out what you want the page to say about your company. You then must grab the attention of the reader, boast a bit, tell a story and let others brag about you. With a little bit of thought…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
Suggested Courses

972 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