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
Day one of tableless website
Old 03-02-2007, 12:39 PM Day one of tableless website
bbutton's Avatar
Experienced Talker

Posts: 43
Name: Bill Button
Location: Reading,UK
Trades: 0
Hi,

Having a day free to learn i decided to have a go at a tableless web page and have been having a frustrating time with it and have hit a few problems.

Virtical-align
I have a header div that has three div's inside it, all 3 have images in the div's the first is our company logo, the second has two images with links to other language versions and the third is a banner. I have been trying to get the virtical-align to work but with no success. So far the suggestions I have got have been to make the images a single image and use an image map, but this kind of sucks. The second suggestion was to use a table but this defetes the goal of a tableless webpage.

Fluid div heights
I also have two div's side by side and wish to have the bottom of the div's match each other as they have borders, I am sure you can use height, but the text will change often and I would then have to work out the height every time.

I have not put all the css into my style sheet yet as I was finding it easier whilst learning to use the style in the div.

my original page is http://www.rodmatic.com/index.asp
the new page is http://www.rodmatic.com/index2.asp

I am also finding it hard work to get the page to look the same in dreamwever, ie 7 and also firefox. Dreamweaver seams to but dashed boarders round the div in the preview which kind of sucks when you are trying to get borders to look right.

Day one of css tableless webpage Auuuuuuuuuugggggggh
__________________
Bill Button

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

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

Please login or register to view this content. Registration is FREE
bbutton is offline
Reply With Quote
View Public Profile Visit bbutton's homepage!
 
 
Register now for full access!
Old 03-02-2007, 02:03 PM Re: Day one of tableless website
Tom_M's Avatar
Ultra Talker

Posts: 250
Name: Tom Maurer
Location: Pennslvania, USA
Trades: 0
You might want to try Faux Columns for the second problem.

I'm not sure want you want to due with the vertical alignment? You should just be able to use a little padding to bump things around to align them. That sounds like the easiest decision. Also, the banner just looks like a bunch of photos to me. You could even eliminate that division totally, and then set that banner image as the background of the header div.
Tom_M is offline
Reply With Quote
View Public Profile
 
Old 03-02-2007, 02:25 PM Re: Day one of tableless website
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
They look very similar to me, but I can see a little bit of "sloppiness" in the CSS layout.

I agree with Tom, that you should use margins/padding instead of vAlign to get things where you want.
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 03-02-2007, 08:55 PM Re: Day one of tableless website
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Vertical align does NOT work the same way that it would for tables, at least not for what you're trying to achieve. LN is on track with the margin and padding to align the header sections.

I agree on the faux columns method, it will save you a LOT of headaches, I use it all the time

Quote:
I am also finding it hard work to get the page to look the same in dreamwever, ie 7 and also firefox. Dreamweaver seams to but dashed boarders round the div in the preview which kind of sucks when you are trying to get borders to look right.
The problem there is that DW 7 uses a VERY OLD version of IE as it's internal preview, I think it's actually IE 5.0 !!! As with all versions of IE 6 and below, it is chock full of BUGS. Don't rely on the DW preview, just preview in the various browsers.

A few comments on the code:
DUMP the <center> tag, it's deprecated and you shouldn't use it if you're going to use CSS. For text like "Small run highly complex components", use a proper HEADING - h1 - h6, and style the Hx in your CSS. That is where you give it color, alignment, size, etc.

Same goes for the <p align="justify">. Since it looks like all your text is justified, just set the <p> to be justifed in your css:

p{
text-align: justify;
font-size: 80%;
}

I would also urge you to give your divs ID or Classes.

For your first shot at this, you've done a pretty darn good job. Keep up the good work
__________________
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 Day one of tableless website
 

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