![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Web Design & Programming Discussion of web design, and server-side & client-side scripting |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Moderator, TSF Articles
|
[SOLVED] Another CSS issue?
Hi
Im making a new website and it involves the content on the left with a right aligned menu. There is one problem with the content area and that is if I dont have enough text to make it fill the users screen, the entire text div will just expand to the width of the text instead of the screen. You can see an example here: http://loveyourdub.northeast-networks.net/contactus.php As you can see, compared to the homepage, the page formatting looks to be out with the menu and content not expanding to fit the full width of the screen. I have tried the CSS max-width and min-width functions and they didnt work. Also tried repeating a blank image across the width of the div and a H rule but neither worked. Anyone have any ideas. http://loveyourdub.northeast-networks.net/style.css Thats my CSS if you need to have a look. Chris |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Another CSS issue?
To fix this issue, add width: 100% to div.
If this isn't exactly what you want, you can play with the value until you get something you like. The value can be set either as a percentage or in pixels. Your style sheet looks kind of messy, but the site looks good. Good luck!
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#4 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Another CSS issue?
Wait a minute, contactus.php hasn't been uploaded (the site redirects to the index). Please upload the file or c+p the code into your next post. We can't see what's going on if we can't see the code :).
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#6 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Another CSS issue?
Try this:
HTML Code:
<div id="text" style="width: 100%">
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#8 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Another CSS issue?
Just make it smaller :)
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#10 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Another CSS issue?
Play with the margins then.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#12 (permalink) |
|
Moderator: Design
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,446
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Another CSS issue?
I'd be glad to test this hypothesis, but you seem to have blocked access to the page again.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#14 (permalink) |
|
Moderator, TSF Articles
|
Re: Another CSS issue?
I tried the margin of 305px, which seemed to change the page a bit, but it also changed all of the other pages, which have large amount of text on them so you would need to scroll using the horizontal scroller in a browser.
|
|
|
|
|
|
#15 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros
|
Re: Another CSS issue?
Hey carsey, i've just re-looked over this thread.
Is the screenshot i've posted as an attachment what you're trying to achieve? (noting that the main div spreads across the entire width of the page) If it is then i believe all you have to do is add "width: 100%;" to the #main entry in style.css so it looks like: (from style.css:) Code:
#main { float:left; background:url(images/sidebar_bckg.gif) no-repeat top right #1e1e1e; padding:20px 0 0 0; width:100%;}
Cheers, Jamey Last edited by jamiemac2005; 10-12-2008 at 09:05 AM. |
|
|
|
![]() |
| Thread Tools | |
|
|