Welcome to Geeklog Monday, October 23 2017 @ 03:58 am EDT


Status: offline

joelbarrios

Forum User
Junior
Registered: 03/05/2004
Posts: 22
Location:Mexico
With some help of my good friend 4lb3rt (a.k.a. Tereso Ramos, from d-webstudio.com), I have succeeded into creating a 2 column layout for stories. Check out http://www.alcancelibre.org/ and express your opinion. My website uses Geeklog 1.6.1sr2.

Please, note that there's no need to touch lib-story.php

The idea came from a suggestion made by Dirk to Koalasoft a few years back in some forum post I can't remember.

The recipe:

1) Requisite: storytext.thtml has to be done using only divs. No tables. This is done using only CSS 2.1.

2) Modify storytext.thtml, look for:
PHP Formatted Code
<div class="story">

Change it for:
PHP Formatted Code
<div class="story" id="story{story_counter}">


3) Edit style.css, add the following:
PHP Formatted Code
div#story1, div#story3, div#story5, div#story7, div#story9, div#story11, div#story13, div#story15 {
width:362px;
float:left;
clear:both;
}

div#story2, div#story4, div#story6, div#story8, div#story10, div#story12, div#story14, div#story16 {
width:363px;
float:right;
}


The code above considers that the width of my stories' column has a width of 735px, using % did not work for my layout. Change the width to fit your particular layout. Depending on your layout, probably you will need to change clear:both for clear:left. Play a little and take your time.

4) Clean your browser's cache and enjoy.

My future plans include converting all my layout to a "table-less" one, using only divs and css.

-- http://www.AlcanceLibre.org/ La libertad del conocimiento al alcance de quien la busca.

Status: offline

koalasoft

Forum User
Full Member
Registered: 09/03/2005
Posts: 242
Location:Mexico
This is other example to long time ..

2 columns style joomla

Greetings!! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece ** ::Geeklog support in Spanish::

Status: offline

Roccivic

Forum User
Moderator
Registered: 19/05/2010
Posts: 136
Quote by: joelbarrios

My future plans include converting all my layout to a "table-less" one, using only divs and css.



This feature is coming to Geeklog with version 1.8.1 (some time this Autumn) in the form of the "Professional_Css" theme.

Rouslan

Status: offline

beewee

Forum User
Full Member
Registered: 05/08/2003
Posts: 969
Location:The Netherlands, where else?
Quote by: joelbarrios

With some help of my good friend 4lb3rt (a.k.a. Tereso Ramos, from d-webstudio.com), I have succeeded into creating a 2 column layout for stories. Check out http://www.alcancelibre.org/ and express your opinion..


That is definitely the most beautiful Geeklog layout I've ever seen. Very, very, very nice!! :banana: :banana:
Dutch Geeklog sites about camping/hiking: www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net

All times are EDT. The time is now 03:58 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content