Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 18th, 2003, 05:58 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to myraleen Send a message via AIM to myraleen
button values and breaks

I think I have lost my mind.

I have made some buttons, with php, css and html.

They work great.

Now I am trying to optimize my site for all browsers and resolutions... and have issues with my wonderfull buttons.

Some of the words don't fit, and you end up not seeing all of them.
My solution is to make the button height bigger.. but the value of the button (say Rates & Reservations) is not wrapping.

So what do I do, to make the words on the buttons wrap, or put a little break inside of them?

here is a sample button:

php Code:
Original - php Code
  1.  
  2. <a href="rates.php"><input type="button" Value="RATES & RESERVATIONS" class="headerButton" onClick="window.location.href='rates.php'" align="middle"></a>


and here is my CSS code for it:

php Code:
Original - php Code
  1.  
  2. .headerButton {
  3.     font-family: serif, Verdana, Arial, Helvetica, sans-serif;
  4.     font-size: 10px;
  5.     color: #99CC99;
  6.     font-weight: bold;
  7.     margin-top: 2px;
  8.     margin-bottom: 2px;
  9.     text-align: middle;
  10.     background-color: #003300;
  11.     width: 116px;
  12.     height: 25px
  13. }
  14.  
  15. .headerButton a:hover {
  16.     background-color: #003300;
  17.     border-color: #99CC99;
  18.     border-style: inset;
  19.     border-top-width: 1px;
  20.     border-right-width: 2px;
  21.     border-bottom-width: 2px;
  22.     border-left-width: 1px;
  23.     width: 116px;
  24.     height: 25px
  25. }
  26.  
  27. .headerButton a {
  28.     background-color: #FFFFFF;
  29.     border-color: #99CC99;
  30.     border-style: inset;
  31.     border-top-width: 2px;
  32.     border-right-width: 1px;
  33.     border-bottom-width: 1px;
  34.     border-left-width: 2px;
  35.     width: 116px;
  36.     height: 25px
  37. }


Please help !!

Thanks

Reply With Quote
  #2  
Old September 18th, 2003, 06:21 PM
myraleen myraleen is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Ottawa, Ontario, Canada
Posts: 123 myraleen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via ICQ to myraleen Send a message via AIM to myraleen
RE: button values and breaks

well that was easy
php Code:
Original - php Code
  1.  
  2. <button class="headerButton" onClick="window.location.href='contact.php'">Contact</button>


A lot less code too!!!

Reply With Quote
  #3  
Old September 19th, 2003, 12:00 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: button values and breaks

he ;)

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > button values and breaks


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
Stay green...Green IT