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

x
?
Solved

Lengthening a menu box

Posted on 2014-03-28
2
Medium Priority
?
183 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 54

Accepted Solution

by:
Scott Fell,  EE MVE earned 1000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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 style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Suggested Courses

773 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