Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 05-08-2005, 06:37 AM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
CSS and DIV help!

Hi folks,
I know I can go through tutorials and sneak through lines of codes to find out how to do this but I need some directed help to the point

as you see here in pepper template


the two field of image note and exif information are residing side by side. I want to do so with CSS and div tags. I know how to do it with tables but I want to learn doing such stuff with DIV.

(I'm going to design my personal template )
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
  #2  
Old 05-08-2005, 08:17 AM
Connie
Guest
 
Posts: n/a
Raminia,

did you take a look into the CSS of pepper's template?

Things like this are done by <div>s, which have the attribute "float:left" or "float:right"
Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>two boxes for Ramin</title>
<style type="text/css">
#number_one {
border: 1px solid #000000;
width: 200px;
float: left;
margin-right: 10px;
background-color:white;color:black;
margin-bottom:10px;
}
#number_two{
border: 1px solid #000000;
width: 200px;
float: left;
background-color:white;color:black;
margin-bottom:10px;
}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<div id="number_one">number one </div>
<div id="number_two">number two</div>
</body>
</html>
so this example gives you the basics for two boxes, side by side

test it with this example-page
Reply With Quote
  #3  
Old 05-08-2005, 07:22 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
Thanks Connie. That was very helpful
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 03:48 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs