Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-03-2006, 10:48 AM
Registered User
 
Join Date: Apr 2006
Posts: 3
Question 3 column layout problem

Hi,

I'm trying to create a 900px-wide 3-column layout that is centered in a container. But I'm having various problems and my knowledge of CSS programming is intermediate. For instance in some browsers such as the latest IE, the third column breaks the container, but it doesn't happen in Netscape or Opera. The second column is suppose to contain 4 navigation buttons that should be aligned to the bottom, but it seems that the vertical-align: bottom; property doesn't work properly.

Can anyone please help me figure out how to fix the problems? I'd like to use this as a template for browsers compatible at least with IE 5/Win and Netscape 6.

You can view the page here.

Thanks.
Reply With Quote

  #2 (permalink)  
Old 04-04-2006, 11:04 AM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,110
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Angry

Maybe this page from HTMLSource will help you out.

PS: Thanks for the link!!
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Last edited by Leprakawn : 04-04-2006 at 11:09 AM.
Reply With Quote
  #3 (permalink)  
Old 04-05-2006, 12:45 PM
Registered User
 
Join Date: Apr 2006
Posts: 3
Thanks for the link.

Okay, I at least figured out why my container was breaking. I had a fixed size of 900px width and when I added a border around <img src> in the second column it collapsed the whole structure. So I've made my buttons narrower to accomodate the fixed width structure.

I've still have yet to grasp how to vertically align the buttons properly. I've been looking through various tutorials and I'm still not getting it. Do the stack of 5 images as a group need to vertically align to another <img> instead of aligning themselves within the column? If that's the case, then it seems a bit crude to create another <img> element that is as long as the column to align them properly.
Reply With Quote
  #4 (permalink)  
Old 04-05-2006, 05:37 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,110
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Unhappy

This is what I would probably do:
HTML Code:
<div id="contentcenter">
<table border="0" cellpadding="0" cellspacing="0" style="height:643px;">
<tr>
<td valign="middle">
<img src="./images/scrap.jpg" width="150px" height="25px" alt="" border="0" /><br />
<img src="./images/scrap.jpg" width="150px" height="25px" alt="" style="padding-top:?px;" border="0" /><br />
<img src="./images/scrap.jpg" width="150px" height="25px" alt="" style="padding-top:?px;" border="0" /><br />
<img src="./images/scrap.jpg" width="150px" height="25px" alt="" style="padding-top:?px;" border="0" /><br />
<img src="./images/scrap.jpg" width="150px" height="25px" alt="" style="padding-top:?px;" border="0" />
</td>
</tr>
</table>
</div>
Just adjust the padding-top snippet as needed, and that should hopefully do the trick.

BTW, the top img should not need one because there is nothing above it. And if padding-top does not work, change it to margin-top. Finally, if the CSS fails for the space btwn the imgs, you can use vspace="?px"!

NOTE: vspace would be used like this: <img src="./images/scrap.jpg" vspace="5px" />
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ

Last edited by Leprakawn : 04-05-2006 at 05:55 PM.
Reply With Quote
  #5 (permalink)  
Old 04-06-2006, 08:17 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
Quote:
Originally Posted by pulsewidth
(...) but it seems that the vertical-align: bottom; property doesn't work properly. (...)
It never worked (as expected) for me. I always work around with padding-top/margin-top properties to achieve the same effect.

Till
Reply With Quote
  #6 (permalink)  
Old 04-12-2006, 12:44 PM
Registered User
 
Join Date: Apr 2006
Posts: 3
Interesting. I was going to use a table as a last resort for the nav buttons. I wanted to steer clear of it because it's frowned upon by the CSS community if used as a layout tool and it may not validate.

So I tried the table technique and so far it separates the images in the column properly using the <style="margin-top:?px;"> property in the <img> tag. So the layout more or less looks fine on Netscapes 6, 7, 8, Foxfire, Opera 8, and IE6/Windows.

The height of the columns still don't match up in IE 5 or IE 5.5. So I decided to decrease the height of the banner in the left column by a few pixels to fit the column within the container. Now it's only the right column that sticks out of the column. I'm wondering if it's because instead of padding it, I gave it a border, and that's what makes it break out of the container in IE 5.
Reply With Quote
  #7 (permalink)  
Old 04-12-2006, 02:25 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,110
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Thumbs up

Just tell everyone in that little CSS community that they can shove it where the sun does not shine.
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #8 (permalink)  
Old 04-12-2006, 06:50 PM
Registered User
 
Join Date: Mar 2006
Posts: 12
Talking CSS - three column style sheet link

I'm not quite sure why you want to set px width for your css style sheet. (I work for blind services in florida and am trying to redo our site using css because of the power it has to make sites accessible. % width helps with this be layout tables or css).

However, I too am working on a three column layout for "front page". I've learned a lot from http://css-discuss.incutio.com/?page=ThreeColumnLayouts The page not only provides good information regarding different bowers issues but have some great links to css style sheets for 3 column layout.

Good luck
Reply With Quote
  #9 (permalink)  
Old 04-13-2006, 12:01 PM
Leprakawn's Avatar
Moderator
 
Join Date: Jan 2004
Location: Outside, and playing with your invisible friends.
Posts: 1,110
Send a message via AIM to Leprakawn Send a message via Yahoo to Leprakawn
Too bad you have not learned to not use Front Page yet!
__________________
Like my spiffy, unique signature?
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #10 (permalink)  
Old 04-14-2006, 06:31 PM
Registered User
 
Join Date: Mar 2006
Posts: 12
Unhappy learn to not use front page

I was kinda of confused and sadden by your comment.

I'm not really a front page advocate. I understand html, am learning css and xhtml through this site and other sites and provide training to other web folks on accessiblity issues related to persons who are blind as more or less "other duties as assigned".

I'm a lowly state employee, who uses the tools available based on parent organization and funding. First site I put up was using notepad.

I have an old version of front page. I work for a state agency. I was in department of labor and front page was the going product. Then we moved to department of education (2000) and they used dreamweaver and I was unable to get an upgrade to front page. I finally asked for dreamweaver since that was what everyone else in department of education was using and finally got the requested software - a WEEK AGO.

Dreamweaver has some wonderful accessiblity features! I will be able to get material up in a more accessible format even faster.

I really am not a software "web person". But software helps me ensure that I can do all duties as assigned. I am totally responsible for both content and web "master" duties as part of my duties as assigned, but when I just got my evaluation, this part of my job was so unimportant to my boss that there was not even a listed on my evaluation item(s) for this part of my job. I don't think that our site is world class ( http://dbs.myflorida.com/ ), but I try to ensure using whatever software is availbale that it is kept up to date and accessible.
__________________
(\ /)
(o.O)
(>< )
/_|_\


May bunny optain, world domination.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with timestamps curtiss Programming and Scripting 2 04-15-2006 05:58 AM
showLayer function, layer position problem ruthann Programming and Scripting 3 03-19-2006 10:13 AM
Javascript problem in setting URL gilgalbiblewhee Programming and Scripting 2 03-07-2006 01:34 PM
border problem - for me anyway :) Inspironx Programming and Scripting 4 03-07-2006 06:55 AM
ASCII coding problem HELP!!! psi3000 Programming and Scripting 1 02-28-2006 10:49 AM


All times are GMT -5. The time now is 10:26 PM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter