WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Problem with the width of the link text in my drop downs
  • Print
Pages: [1]   Go Down

Author Topic: Problem with the width of the link text in my drop downs  (Read 3595 times)

Offline sparkdigital

  • Posts: 366
  • Once a baker, always a baker!
    • romantic hotels
Problem with the width of the link text in my drop downs
« on: October 31, 2009, 09:00:51 AM »
Hi

I'm using the drop down menu script from the generic template for this wb website and so far so good.

http://www.swinsidelodge-hotel.co.uk/

The only thing I can't figure out is why in the fourth drop down 'The Area', one of the links doesn't automatically break but flows outside of the drop down. I've set the width for just about every id etc!

I think I've been looking at it too long as well and can't see the wood for the trees anymore...  :?

Would be very greatful if any of you could spot the mistake!

Thanks,

Konrad
Logged

Offline marathoner

  • Posts: 495
Re: Problem with the width of the link text in my drop downs
« Reply #1 on: October 31, 2009, 04:49:58 PM »
The width of the drop down is set at "#navigation li ul" and the anchors are set at "#navigation li li a". Look's like the anchors are set 10px narrower to allow for the padding. I changed the drop down width from 110px to 150px and the anchors from 100px to 140px and the submenu text fit fine on my screen.

Edit:
You might also want to simply allow wrapping (you have it set to not wrap) and set the alignment to left (you have it set to justify). As an example, if you simply add the following CSS to your "#navigation li li a" it works well
Code: [Select]
text-align:left;
white-space: normal;
« Last Edit: October 31, 2009, 06:20:05 PM by marathoner »
Logged

Offline sparkdigital

  • Posts: 366
  • Once a baker, always a baker!
    • romantic hotels
Re: Problem with the width of the link text in my drop downs
« Reply #2 on: November 01, 2009, 10:21:44 AM »
Great stuff, thanks Marathoner. I used your latter suggestion and it worked straight away. The White space tag was a new one to me - it's good to keep learning all the time!

Thanks again,

Konrad
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Templates, Menus & Design »
  • Problem with the width of the link text in my drop downs
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2