Setting Sidebar width

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
Wesley B
Regular
Posts: 27
Joined: Sat Feb 19, 2005 11:48 pm
Contact:

Setting Sidebar width

Post by Wesley B »

Hi,

How would I go about defining the width of the sidebar?

For a cleaner look, I like all my links and text to display without wrapping to a new line.

Currently, I'm accomplishing this by setting the width of a table I have in an html nugget to a large enough value.

I figure there is a better way to do this, but haven't learned much css and would need pointed in the right direction.

I'd really like to be able to set it up so the width of the sidebar would adjust in each template to a large enough size to prevent text-wrapping.

Wesley B
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Setting Sidebar width

Post by garvinhicking »

I think the best way would be to add:

Code: Select all

white-space: nowrap;
to the IDs:

Code: Select all

#serendipityRightSideBar, #serendipityLeftSideBar {
   white-space: nowrap;
}
This should work in all modern-day browsers.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply