|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hello... desperately in need of CSS help:
I am trying to build a website based upon CSS, basically following this exact guideline: http://www.quirksmode.org/css/centering.html So basically I have my container div which is centered, and I am using absolutely positioned layers within it. The thing is, I am having trouble adding new layers to fit within the container div. I know how to make the container larger to accomadate new layers, but I am having trouble figuring out how to make new layers fit within the container. Do I have to put new layers in a certain order within the container div? (the HTML I mean) Code:
<div class="container"> <div class="left"> Top content </div> etc. </div> Building off the basic design on that website, I wanted to have a bottom layer that included information like a copyright and random links. In addition to that, I needed to add layers within the left content box... Any help you can provide would be much appreciated. Thanks and happy new year! -Becky Gessler |
|
||||
|
Have a look at my CSS style sheet. I think it does what you are trying to accomplish:
http://www.richkoi.com/layout.css Rich
__________________
Me |
|
||||
|
I too am delving into the morass of CSS.
The experts on this can be found through Eric Meyer's awesome discussion group at http://www.css-discuss.org/ The archives have all the answers you are likely to need plus if you subscribe to the forum you will find someone who will answer your questions within a few minutes (yes). Downside is that you can receive some 50-60 emails a day. You do have to be careful with CSS as IE6 doesn't always render faithfully. I assume that you are using Firefox 1.5 as your development tool? Hope this helps. Ian |
|
||||
|
for footer set the property as clear:both;
so it will have effect like colspan=xx in table.. I would suggest generating your layout using CSS Layout Generator I hope this helps you. Deep
__________________
Deep Ganatra Gifts to India - Cisco Certification Training - CSS Based Website Design |
|
||||
|
Use tables.
MrLeN
__________________
TubeShine - YouTube Playlist Generator |
|
|||
|
I am playing for the first time with CSS on a site I am just starting (http://www.mysmokies.com) and I am having interesting quirks with IE - especially with the new IE 7 beta.
By removing tables, my code is much cleaner and hopefully much more SE friendly but there is a learning curve. One of my issues is I wanted to put the "navigation" dive lower in the code and have the content higher. Works great in everything other than IE so for now I have to leave it in the order that IE likes it :(. |
|
||||
|
Don't listen to anyone. Just listen to me. It is fine to use tables and they are great for SEO. What you need to do is use what is best for you. Use the method that is easiest to implement and maintain.
Trust me mate. I have been down this road. Boy, have I been down this road. I know how to make Table and DIV layouts just as well as anyone around this joint. And I am telling you that your approach is going to cause you grief. If you're making a simple page, DIV's are fine. If you just want to add a box here or there or create containers for certain parts of web pages, then DIV's are great. But the fact of the matter is that no matter what ANYONE says, including W3C.. Tables are fine. Use them! Save yourself heartache! For the type of site you're building, ONE table will use much less code than DIV's inside DIV's floated left and right and absolutely positioned etc. What an absolute night mare - and all for nothing. Just do what is most simple and get on with your project. Believe me. I am not anti 'DIV'. I am not PRO 'table'. I am for what works. Tables are by NO means done with. Don't let DIV crazy nuts fool you. Use both, depending on what you want to do. You should take my advice, which I learned after hand coding for 5 years - daily. I know what I am saying. I know everything off by heart. Oh, and you can do EVERYTHING to tables that you can do with DIV's. Apart from some positioning things which are already built into Table functionality and have been for ages. You can adjust background colors, widths and heights. You can absolute position them. They are 1000% easier to use than DIV's for multi column websites. You can specify 100% height, no problem. You can center them on the page, no problem. As a matter of fact, you can make a tabled layout with even LESS code than a DIV layout. I've seen some sites created totally from DIV's that have several columns, absolutely positioned DIV's all over the place. Why?? They've just gone way overboard. They could achieve the same results, in 1/10th of the time with a table. MrLeN
__________________
TubeShine - YouTube Playlist Generator |
|
|||
|
MrLeN - I dont think using tables actually help. Our website used tables for over 2 years and it got us no where. Once we implemented the CSS, we are now showing in GOOGLE an area which was a total no no for us at the time. ;))
so noooooooooooooooooo for tables.. they are your worst enemy |
|
||||
|
Right!
MrLeN
__________________
TubeShine - YouTube Playlist Generator |
|
|||
|
I don't think because of CSS you can do well in Google. There is something else which has helped you in ranking at google.
I try to keep all my style commands in external style sheet and use table for body positioning. By keeping my javascript and styles in external files I improves the tags ( codes ) to content ratio.
__________________
PHP HTML SQL tutorials and articles. Free scripts:Web Hosting Directory:Funny Star Jokes: |
|
|||
|
Quote:
I have had sites that ranked great with tables. There is no reason to make excessive tables when other techniques will do, nor should you bang your head against the wall with some aspects of CSS which don’t have great cross browser compatibility. Moderation is the wining mantra. |
|
|||
|
I've alwasy been a fan of Dave Shea's ( www.mezzoblue.com )
Here are a few links to get you started: http://mezzoblue.com/archives/2002/12/12/effects_of_c/ http://mezzoblue.com/archives/css/ http://mezzoblue.com/archives/2003/04/23/centering_ab/ |
|
|||
|
not sure if the original question was answered but to center something within a div use
Code:
margin: 0 auto; |
|
||||
|
I don't know much about DIV and all the complexity of CSS, but I know that Google doesn't hate websites using tables. Ours is within the first five results on gg on all search terms relevant to our activities. And I only use CSS for font, size, h1, colors and such basic coding... So saying that tables are "the worst enemies" doesn't make any sense at all! HOwever, I can easily understand and see where and when CSS are a + as they somehow reduce coding, that's right.
So I'll keep learning about Css and stuff... Aventvoy
__________________
http://www.aventurevoyages.com |
|
||||
|
I just built a site (which I started two months ago) which has a top 10 ranking (mostly top 3 rankings) for all of its very popular and sought after search terms and products, in Google MSN and Yahoo.. attracting thousands of uniques every day and between 2-5K a day in orders each day(so far).
But this time in 6 months orders will be more like 20K a day, because the site was built for a company that sells summer products. The site uses tables EXCLUSIVELY, but only a DIV here and there. MrLeN
__________________
TubeShine - YouTube Playlist Generator |
|
|||
|
It's horses for courses surely. Some people find coding using CSS faster and cleaner than using tables. Others prefer the opposite. Personally, I use a mixture but try to keep the use of tables to stats etc. Saying this, I'd never prevent myself from using tables for the sake of CSS purity.
For those who know one or the other it's worth learning how to do sites using both as you may be needed to produce both at work. |
|
|||
|
Quote:
Code:
#wrapper { margin: 0 auto; }
Code:
<div id="wrapper"> <table>...</table></div> |
|
|||
|
My first site was completely tables. I'm using CSS now, and it's working for me much more than tables ever could have. I'm trying to stick away from tables, but I may end up with one or two on a page, within my layers.
After starting this post, I see how far it's gone. Wow. Thanks for your help everyone. Currently my template type page for my new site looks like this: http://www.wethegeeks.com/wtgcenterbgheader.html All CSS, but I still have some stuff to change anyway, so you may see a table or two. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |