Latest Featured Articles
New two columns valid skin package.
Posted at:Wednesday, October 29, 2008 Viewed:(94)times. "Hi,I would like to announce our new skin package, "Nukedesigners two columns for dotnetnuke."The va..."....Read more....
Takeslides at photobucket.
Posted at:Saturday, August 16, 2008 Viewed:(274)times. "Hi All! I'm quite excited to share here that "takeslides" was just added to the "Photobucket Applic..."....Read more....
Takeslides.com at Orkut and facebook.
Posted at:Saturday, July 26, 2008 Viewed:(354)times. "Well these couple of month were quite overwelming. From the point of launching takeslides at hi5.com..."....Read more....
Takeslides at hi5.com
Posted at:Sunday, June 01, 2008 Viewed:(448)times. "Hi! Just a few hours ago takeslides.com was launched at hi5.com."....Read more....
Takeslides.com is launched!!!
Posted at:Tuesday, May 13, 2008 Viewed:(580)times. "Hi Everyone, I'm glad and excited after quite some long time of silence, (at least at "nukedesigner..."....Read more....
iTune latest RSS slideshow gadget
Posted at:Thursday, February 07, 2008 Viewed:(683)times. "Hi! We have just released our new gadget. It is a slideshow of iTunes latest by all categories. Yo..."....Read more....
Exciting news for Picasa, Photobucket and Flickr users!
Posted at:Tuesday, January 22, 2008 Viewed:(828)times. "TURN your RSS buttons at the  bottom of any of your albums pages to a beautiful slideshow withi..."....Read more....
"Announcements" new feature in the social bookmarking template
Posted at:Saturday, December 15, 2007 Viewed:(823)times. "Hi! We've added a new  "Announcement" feature to our "social bookmarking template". Please ta..."....Read more....
A new forum as well.
Posted at:Thursday, December 13, 2007 Viewed:(932)times. ""....Read more....
New features: A newsletter and a new catalog
Posted at:Thursday, December 13, 2007 Viewed:(1149)times. "Hi all! I'm excited to announce those two new features. The first is the newsletter which I'm usin..."....Read more....
Support, Tutorials, Articles

How to create two columns inside the text module

OK, let's start.

We want two columns so one we will call "textleftcolumn" and one "textrightcolumn". Since we might like to use it a few times in our page, lets just give it  "classes",  other than "ids" which are just for one item on a page.

The first div is the wrapping one which is there to make it a "safer place" :) (e.g of hacks).

.wrapingtwocolumnsbox {

float :left;

width:100%;

clear:both;

}

.textleftcolumn {

float:left;

width:48%;

border:1px dotted #003366;

}

.textrightcolumn {

Float:right;

width:48%;

border:1px dotted #003366;

}

We should change into source mode and write this:

<div style="float:left;width:100%;clear:both;">

<div style="float:left;width:48%;border:1px dotted  #003366;">text</div>

<div style="float:right;width:48%;border:1px dotted  #003366;">text</div>

</div>

 

text
text

 

That's it!.

I was adding "text" into the div so there will be some min height. why? so now you can move back to text mode and using the mouse just enter there anything you like. From images, to headers, text etc". any thing you like to do with the text module.

Of course you can add <p> around the text, or any thing else.

You can add that code so you will have an auto scroll bar: (see an earlier tutorial for that):

height:300px;

overflow:auto;

Or any other idea you have in mind like changing border, background, width, etc" etc".

One more thing. When you want to continue after those boxes, go back to source mode and move your mouse to the end.

Good luck!

The CSS

.wrapingtwocolumnsbox {

float :left;

width:100:;

clear:both;

}

.textleftcolumn {

float:left;

width:48%;

border:1px dotted #003366;

}

.textrightcolumn {

Float:right;

width:48%;

border:1px dotted #003366;

}

 

About the CSS

I'm using 45% width to leave some space for the padding which I was adding to prevent rendering problems. Also I'm using % and not px, so I do not have to star doing calculations. In the demo I'm attaching the style to the div. But...In case you like to use the template/idea a lot you can add the style you're making into the skin css and whenever you would like to use it just open three divs like that: (in the source mode)

<div class="wrapingtwocolumnsbox" >

<div class="textleftcolumn ">text</div>

<div class="textrightcolumn ">text</div>

</div>

(and then get back to text mode)

 

 

 

 End! :)

posted @ Monday, October 01, 2007 9:58 AM by Avi A

comments

Name (required)

Email (required)

Website

Enter the code shown above: