I need to set up a simple template for all new posts in my blog which will include text and an image. What's the best way of doing this?

I currently use tables but these do not scale well.

I'm also unsure of which version of Drupal I have installed. Hoe do I find out? Somebody installed everything for me and now I'm trying to grasp how to get everything set up properly and running.

Comments

derekwebb1’s picture

Hello, for your blog posts templates I would recommend using div tags and css, not tables. Tables are useful in certain instances, but as you say, they do not scale well and they also add a lot of additional markup. Generally tables are only used for display of tabular data. Of course if you style your tables well most people wont notice...

To figure out which Drupal you have, go to your sites' main directory and look for a file named CHANGELOG.txt. Open that up and look at the top most entry. That will tell you what version you are using.

Best regards, Derek

mrf’s picture

My advice on whether to use CSS or tables would be to go with whatever you are most comfortable with. If you are already comfortable with tweaking tables to make them work correctly, this will be easier for you to work with, but doing the site with CSS will probably leave you more room for customization (and easier updates) in the long run.

One quick way to tell what version of Drupal you have is by trying to visit http://www.example.com/CHANGELOG.txt

This file will have your current version number right at the top. Make sure you use all caps for the name, otherwise you will probably get a "404 not found". It is possible that the person that installed your site removed this file, but most people don't.

GreenLED’s picture

I agree with mrf. I most of the time prefer tables -- just because I'm used to tweaking them how I want them. Also div tags can sometimes get my goat because they have weird renderings in different browsers -- also tables have been around a lot longer. However -- css and div's seem to be "in" now. I can rely on tables vs div's. In any event -- go with what you know.

derekwebb1’s picture

I too used to be a fan of tables. It is true that they are pretty consistent, however if one just remembers a few little things about divs such as "padding adds to the width" and so forth. Then they can be pretty easy to use and low on superfluous markup.

If you plan not to use css much (ie you want to set your styles in your html/xhtml) then tables are fine for that.

Also, if your are familiar with tables then use them, some pretty nice sites do. Cafepress' site is layed out with them (although it shows). I guess its just in the eye of the beholder...

If you don't know anything about using divs then start to learn - you should of course use a test site...

GreenLED’s picture

I'm still using tables :). I enjoy the fact that they always work + I can add css id's and classes to boot!

» Respectfully, GreenLED
» Stable Files . net