Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Lengthening a menu box

Posted on 2014-03-28
2
Medium Priority
?
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
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.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Suggested Courses

719 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