Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Making page stretch with content.
Old 07-25-2008, 11:18 AM Making page stretch with content.
Jdinh04's Avatar
Super Talker

Posts: 140
Name: Johnny Dinh
Location: East Lansing, MI
Trades: 0
I am in the process of coding my new personal site design and in some pages there will be more content then others. I would like to know how I can make the design or background stretch to fit all the content that I will be adding.

I hope that makes sense.
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
 
Register now for full access!
Old 07-25-2008, 11:29 AM Re: Making page stretch with content.
Super Talker

Posts: 129
Trades: 1
I can't really understand what you're saying.

Are you on about a fixed or fluid site design?
Fixed meaning a width of say 760px so it fits on all resolutions down to 800x600. Or fluid with is percentage which makes the page 100% like this forum. So the page scales to fit the resolution. Resulting in a page for all resolutions.

Is this it?
__________________

Please login or register to view this content. Registration is FREE
yourmediaking is offline
Reply With Quote
View Public Profile
 
Old 07-25-2008, 11:38 AM Re: Making page stretch with content.
Jdinh04's Avatar
Super Talker

Posts: 140
Name: Johnny Dinh
Location: East Lansing, MI
Trades: 0
Okay let me restate what I would like to do.

I am in the process of finishing up my personal site design. The design was created on a 800x600 resolution. I will be slicing up the images and placing them into DIV's and coordinate the position with CSS.

However, for the main body part where my text will be I will need it to stretch as I continue to add content and what not.

After slicing up the images the body part may only be 300px tall and the content that I want to add on it may exceed that. So I want to be able to make the body part stretch along with the content that is added (IF NEEDED).
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 07-25-2008, 12:11 PM Re: Making page stretch with content.
angele803's Avatar
Perfectly Imperfect

Posts: 1,774
Name: Stephanie
Location: Oklahoma
Trades: 2
So you want the height to stretch?
If your images are designed correctly and your CSS and HTML is done correctly, your shouldn't have a problem stretching vertically.
You can set both a color and a background image in CSS. So if you had a content div with a specific background, and repeating that background wouldn't look right (for example, a horizontal gradient) you can also set a background color. If you do not repeat your background image, the solid color will show up after the end of the image.
__________________

Please login or register to view this content. Registration is FREE
angele803 is offline
Reply With Quote
View Public Profile
 
Old 07-25-2008, 01:58 PM Re: Making page stretch with content.
Jdinh04's Avatar
Super Talker

Posts: 140
Name: Johnny Dinh
Location: East Lansing, MI
Trades: 0
Its a horizontal background image but its not a gradient, the background will look the same throughout. If works the same way as <td background="url of image"> </td>

Would I just do it this way?

<div id="bodyBackground"> Content goes here.</div>

#bodyBackground
{
background-image: "url of image";
}
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 07-25-2008, 03:54 PM Re: Making page stretch with content.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You would need this:

body{background: url(images/image.jpg) repeat-y; }
That will give you a background image that repeats vertically.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-25-2008, 07:42 PM Re: Making page stretch with content.
Jdinh04's Avatar
Super Talker

Posts: 140
Name: Johnny Dinh
Location: East Lansing, MI
Trades: 0
LadyNRed,

You have the idea, although it seems to be strectching to the full page. Take a look.

http://www.johntdinh.com/csstest/test.html

Also if you look down you can see the bg image like cut off somehow.
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 07-25-2008, 07:55 PM Re: Making page stretch with content.
Jdinh04's Avatar
Super Talker

Posts: 140
Name: Johnny Dinh
Location: East Lansing, MI
Trades: 0
Nevermind I fixed it, let me do some more work and i'll get back to this thread once I can get the whole site finished in CSS w/o errors.

Thanks again for all the help.
Jdinh04 is offline
Reply With Quote
View Public Profile Visit Jdinh04's homepage!
 
Old 07-26-2008, 12:22 PM Re: Making page stretch with content.
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
It WOULD stretch to the whole page because my example applied to the document body, NOT a div with an id of #body.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Making page stretch with content.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.48477 seconds with 12 queries