Solved

Lengthening a menu box

Posted on 2014-03-28
2
174 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fix Form size HTML 16 40
Change color in a check box 8 36
Incorrect css styling in footer 3 24
carousel control extend past the images 9 30
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
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…

752 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