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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 07-19-2009, 06:17 PM HTML/Slicing
SouthEast's Avatar
Novice Talker

Posts: 10
Location: Wales, SE
Trades: 0
Hey, I apologise if this is in the wrong section,

Im having a spot of trouble with photoshop/dreamweaver.

I would like to make a layout in photoshop consisting of a simple header, body section, and footer. However I would like the body section to scroll/repeat as I add more content, like a layer in dreamweaver that automatically stretches down with the more content.

Im not too good at explaining things, so if anyone would like to ask questions Id be very happy to cooperate

Thanks.
SouthEast is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-19-2009, 06:26 PM Re: HTML/Slicing
konetch's Avatar
Ultra Talker

Posts: 258
Trades: 0
I don't use dreamweaver so I wouldn't know how to make it with that, but if you would like to create it with code you'll have to add

Code:
overflow:auto
to whatever you're creating

Example:
Code:
<html>
<head>
<style>
#wrapper {
 width:100px;
 height:100px;
 overflow:auto;
}
</style>
</head>
<body>
<div id="wrapper">
Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 

Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. Lorem Ipsum. 
</div>
</body>
</html>
__________________
Alex
konetch is offline
Reply With Quote
View Public Profile
 
Old 07-19-2009, 06:31 PM Re: HTML/Slicing
racer x's Avatar
Ultra Talker

Posts: 457
Name: Randy
Location: Northern Wisconsin
Trades: 0
For your background in the body section area, just take a section of your ps layout and set it to repeat. Lets say, for ie, it is white paper with torn edges on the left and right side. Grab a section maybe 20 pixels high by the full width and set that as the background image for the section like so:

#body-section {
background:url(torn_paper.jpg) repeat-y;
}

This way, your content can keep growing while the background will keep repeating as needed automatically.

Of course, there are MANY different scenarios for all websites. This was just one example. Perhaps a screenshot of what type of image you want to background?

BTW - That is not the full extent of using CSS shorthand, just a quickie for this example.
Have some fun here: http://www.w3schools.com/css/css_examples.asp
racer x is offline
Reply With Quote
View Public Profile Visit racer x's homepage!
 
Old 07-20-2009, 12:45 AM Re: HTML/Slicing
Banned

Posts: 315
Name: Doug
Trades: 1
A lot depends on the graphic you want as your background.

For instance if you are using a simple gradient as your background
you could creat the graphic 1px height and the width of the body section and use the repeat method described by racer x. You would not even have to use his 20px.

But if you have a picture of a house for example. You would have to set it to the width of the body and the height of the picture and then use the above cited repeat method. Be aware though that most pictures repeated end up making the site look like crapola. Where as some designed patterns don't come out so bad when repeated.

A plain sedate background color is always the best for people with vision problems.
And won't conflict with your text. Remember Information Dissemination is your goal.
Not creating a design that will give people nightmares.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-20-2009, 08:47 AM Re: HTML/Slicing
SouthEast's Avatar
Novice Talker

Posts: 10
Location: Wales, SE
Trades: 0
Hey thanks for all your help, Just to add more I will make a small example and highlight what I need.

Il edit this post with the graphic.

Thanks.

Sorry for my near retarded illustrations!



The reason I want it like this is so I can have another main background for the page,

Last edited by SouthEast; 07-20-2009 at 08:58 AM..
SouthEast is offline
Reply With Quote
View Public Profile
 
Old 07-20-2009, 10:46 AM Re: HTML/Slicing
Banned

Posts: 315
Name: Doug
Trades: 1
If all you are doing is a plain white background you don't need a graphic at all.
Just use a background color. When you add content it will expand automatically.

Are you using two columns? Then one of them has to be a floating div.

Dreamweaver has a template for a two column layout with a fixed header and footer. Go look at it's code.

Barring the wrath of the "Standards Nazi's" you could do this with a table layout
too.
marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-20-2009, 07:49 PM Re: HTML/Slicing
TWD
TWD's Avatar
King Spam Talker

Posts: 1,112
Trades: 0
Quote:
Originally Posted by marketingman100 View Post

Barring the wrath of the "Standards Nazi's" you could do this with a table layout
too.
I think you mean "CSS Nazis".

Us "Standards Nazis" actually aren't bothered
by tables per se because (used properly) they
are still valid XHTML.
TWD is offline
Reply With Quote
View Public Profile
 
Old 07-20-2009, 08:42 PM Re: HTML/Slicing
Banned

Posts: 315
Name: Doug
Trades: 1
My Bad.....

marketingman100 is offline
Reply With Quote
View Public Profile
 
Old 07-20-2009, 09:24 PM Re: HTML/Slicing
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,985
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Sieg Heil CSS!
__________________
Join me on
Please login or register to view this content. Registration is FREE
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-24-2009, 02:33 PM Re: HTML/Slicing
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Quote:
I think you mean "CSS Nazis".
Guilty as charged, but they call me a CODE NAZI..
Danke!
__________________
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 HTML/Slicing
 

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.30920 seconds with 12 queries