Solved

CSS Icons not sitting correctly?

Posted on 2008-10-29
11
264 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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 add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…

895 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

11 Experts available now in Live!

Get 1:1 Help Now