Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Web Design & Development
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: CSS - Text Alignment problem

Reply  
Thread Tools
jbm1991's Avatar
Computer Specs
Senior Member with 1,231 posts.
 
Join Date: Sep 2007
Location: UK
Experience: intermediate ~ advanced
21-Nov-2009, 11:13 PM #1
Solved: CSS - Text Alignment problem
Hi everyone,
Basically on my webpages (which are currently not online) i have a navigation bar (a vertical list) and then the page content. I have used the "float" property to float my navigation bar to the left of the page, and my page content is taking up the rest of the page to the right and below. However, the page content is currently wrapping around the navigation menu, i.e. the page content text starts next to the navigation menu as i want it to, and works down the page, but as soon as the navigation menu stops the page content text aligns itself to the left of the screen thus creating an almost backwards "L" shape of text. How can i stop this and instead make the text remain in line all the way down the page and leave blank space under the navigation menu?
I apologise for my poor description however it is a rather difficult problem to describe and thus far my many google searches have been unproductive

Thanks in advance for any and all help
John

P.S. i have tried using the "white-space: nowrap" but it doesn't appear to do anything.
__________________
Regards John

My photos and photoshoped things are viewable on My Flickr
colinsp's Avatar
Computer Specs
Senior Member with 1,044 posts.
 
Join Date: Sep 2007
Location: Spain
Experience: Adv PC, int HTML, bit PHP
22-Nov-2009, 02:20 AM #2
John, there are several ways to do this. A couple that come readily to mind

1: add a min height value to the navigation div that is the same height as your content div
2: Create a new div with a min height and style it how you like and position that below your navigation div if you want the space below the navigation styled the same as the content
3: Create a new div inside your content div that is floated right that is the fixed width of the content area.

I am sure there are others but that is what comes to mind for now.
jbm1991's Avatar
Computer Specs
Senior Member with 1,231 posts.
 
Join Date: Sep 2007
Location: UK
Experience: intermediate ~ advanced
22-Nov-2009, 08:02 PM #3
Thanks for the quick reply. min height worked perfectly
Thanks again,
John
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:38 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.