Lengthening a menu box

Posted on 2014-03-28
Last Modified: 2014-03-28
There is a drop-down menu box, above the "Book Now!" button, at   On iPhone (for which the system is intended) the selection box is too narrow to display the room name entirely, and I'd like to know what I need to change in the attached style sheet in order to widen it. rezstyle.css
Question by:ddantes
LVL 52

Accepted Solution

Scott Fell,  EE MVE earned 250 total points
ID: 39963113
The problem is on your rezstyle.css line 33 you have the width as a %.  Instead use a media query so when the screen gets to a certain width it will be fixed.  

.btn45 {
display: block;
margin: 20px 2% 0;
width: 45%;

Open in new window

Set your own max width and adjust the class .btn45 as needed
@media (max-width: 550px) {
  .btn45 {
display: block;
margin: 20px 2% 0;
width: 45%;

Open in new window


Author Comment

ID: 39963122
Thank you for your replies.  The page in question is only served to iPhone and smart phone visitors.  Adjusting the width of .btn45 accomplished my intention.

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

Suggested Solutions

Title # Comments Views Activity
Hovering effect 9 47
Adding a hidden div to each row in a table 6 61
jQuery scrollTop 2 40
Any idea why my scrolling images are not showing?? 8 31
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

910 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

21 Experts available now in Live!

Get 1:1 Help Now