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
Old 12-16-2005, 06:42 AM Building My Page
Experienced Talker

Posts: 31
Trades: 0
Hi all,

I have been given a project to do in college and I have to come up with the best way to structure a website.

I have been given 2 different screen shots, one being a main page and another being a menu page. I think

that I will use CSS for most of the building and positioning of content but I wonder should I use CSS in

conjunction with tables.

For the header, navigation and footer I will use CSS, but I am unsure an how to approach the centre of the

page, i.e. the bit that will change from page to page. For example, should I use layers and position them in

CSS with absolute posiitoning etc... or should I use tables. I know that there are cross browsers issues for

different reasons. Any advice would be greatly apprieciated. Here are the screenshots:

Home page: http://www.materialprojects.com/csi/3/cover.html

Inside page: http://www.materialprojects.com/csi/3/inside.html

Thanks in advance!
jwalker80 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-16-2005, 10:11 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
No need to use tables. An absolute positioned DIV with left, top attributes and a fixed width and an auto height would work fine.
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 12-16-2005, 12:30 PM
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
Agreed with most of what funkdaddu said. If you use a container div of a fixed width (about 760 pixels), however, you won't even need absolute positioning at all (except possibly for that Turner logo...it might make your life easier).

I dig your layout, too.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 12-16-2005, 09:08 PM
Experienced Talker

Posts: 31
Trades: 0
Thanks for replying,

I am going to place everthing in a container div of fixed width, which will hold the header, nav, content and

footer divs. The header, nav and footer generally will not change but I am wondering how I am going to

position elements in the content div.

As you can see in the links the content overlaps a bit, so its hard just to do it with column layouts.

http://www.materialprojects.com/csi/3/cover.html

http://www.materialprojects.com/csi/3/inside.html

I'm a bit concerned about the layout. Not sure about the "Services" & "We work smart" parts of the inside

page. Let me know what you think.
jwalker80 is offline
Reply With Quote
View Public Profile
 
Old 12-17-2005, 06:21 PM
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
I'm guessing your concern with the overlap is becasuse the text and images look like they need to be in the same place horizontally in some places.

You can use z-index with positioning to have the text sit on top of the images and still let the images show through.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-17-2005, 09:07 PM
Experienced Talker

Posts: 31
Trades: 0
Cool Thanks,

I have come up with this CSS style, For the "Services" bit I would keep this as a JPEG and then HTML code the "We work smart" piece.

Would you recommend putting the "We work smart" piece into a table and adding padding and an image for the hard hat photo. Or would it be better to leave out tables and put the grey background colour into a background image and coding the text over it and adding padding or something similar.
jwalker80 is offline
Reply With Quote
View Public Profile
 
Old 12-18-2005, 12:12 AM
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
You won't need to use a table at all. For the 'We work smart' text you could set that up in several ways.

One easy way would be to have it in an ordinary paragraph, but limit the width of the paragraph so that it can't extend into the area where you place the image to the right. Or instead of limiting the width you could give a margin-right to the paragraph. You might still want to set a width on the paragraph even with the margin-right. If you do either I'd use css positioning on the image.

Another way and perhaps the better way would be to have both the text and the image enclosed in the same div. All you'd have to do then is use float:right on the image and give it some margin-left to maintain the space between the left. I think you'll need to have the code for the image come before the code for the paragraph in order for the float to work right.

For single color backgrounds you almost never need to use an image though you could as you suggested. To add a solid block of color I create an empty div or maybe one containing a single non-breaking space and then set the background-color and the width and height of the div. This has the advantage of reducing the file size so the page loads faster.

You still need to use images to create the single color backgrounds for the curves at least for now. Firefox and Opera and really any browser that adheres to css standards can take advantage of the border-radius property to create curves in borders and backgrounds. I can't wait for IE to catch up so we can all use it regularly.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

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

Last edited by vangogh; 12-18-2005 at 12:15 AM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 12-18-2005, 06:06 AM
Experienced Talker

Posts: 31
Trades: 0
Thanks Van Gogh thats very useful info
jwalker80 is offline
Reply With Quote
View Public Profile
 
Old 12-18-2005, 03:21 PM
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
Glad to help. I'll keep checking the post in case you have more questions
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Reply     « Reply to Building My Page
 

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