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:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* 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
Go Back   Tech Support Forum > Design Forum > Web Design & Programming
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Web Design & Programming Discussion of web design, and server-side & client-side scripting

Reply
 
LinkBack Thread Tools
Old 10-10-2008, 01:46 PM   #1 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
[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
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
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

Old 10-10-2008, 05:19 PM   #2 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 06:01 PM   #3 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

That didnt seem to work. I put <div id="text" width:100%> and nothing changed.

I always thought <divs> always had a 100% value anyway?
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 07:00 PM   #4 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 07:17 PM   #5 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

Right contactus.php is there (i dont know why its redirecting to the index, probly because your not logged in).

I put the code up and removed the login check. ignore the menu on the right tho.
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 07:31 PM   #6 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 08:17 PM   #7 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

View the page for the effect that that line had.

It seems to have made the actual content spred outside the area so it now overlaps my side menu.
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-10-2008, 09:51 PM   #8 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

Re: Another CSS issue?

Quote:
Originally Posted by dm01 View Post
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.
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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-11-2008, 07:16 AM   #9 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

That isnt going to extend the text <div> so that it fits the screen properly though
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-11-2008, 02:21 PM   #10 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-11-2008, 02:33 PM   #11 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

Altering Margins isnt going to fix the problem.
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-11-2008, 02:41 PM   #12 (permalink)
Moderator: Design
 
dm01's Avatar
 
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

My System

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.
dm01 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-11-2008, 02:44 PM   #13 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

Feel free to have a go...
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-11-2008, 02:48 PM   #14 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
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.
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-12-2008, 09:03 AM   #15 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
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%;}
I checked this with your homepage aswell (the modification) and it didn't cause a problem.

Cheers,
Jamey
Attached Images
File Type: jpg screenshot1.jpg (137.6 KB, 5 views)
__________________

Myspace

Last edited by jamiemac2005; 10-12-2008 at 09:05 AM.
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-13-2008, 06:48 AM   #16 (permalink)
Moderator, TSF Articles
 
carsey's Avatar
 
Join Date: Aug 2006
Location: Hunwick, Co. Durham England
Posts: 10,678
OS: XP Pro SP3

My System

Send a message via MSN to carsey
Re: Another CSS issue?

You legend!!!

That worked

Many thanks.
__________________

carsey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 10-13-2008, 07:05 AM   #17 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,880
OS: Vista, various linux distros


Re: [SOLVED] Another CSS issue?

That's k =] I just applied what dm01 has said to your origional stylesheet.

Glad it worked.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 07:34 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85