Solved

Lengthening a menu box

Posted on 2014-03-28
2
163 Views
Last Modified: 2014-03-28
There is a drop-down menu box, above the "Book Now!" button, at www.mauitradewinds.com/RezTest/mobile/availability.html   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
0
Comment
Question by:ddantes
2 Comments
 
LVL 52

Accepted Solution

by:
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



https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Media_queries

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

0
 

Author Comment

by:ddantes
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.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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.
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
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.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

759 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

16 Experts available now in Live!

Get 1:1 Help Now