Jump to content

Recommended Posts

Posted

First off some of your stickies look fascinating. Like many I'm new to this. I've read about 3-4 books cover to cover on CSS/XHTML but this is the first time I've had something to actually use it on.

 

I'm managing a church website and I don't know what was going on before but the site appears to me to be a mess. For my first step I'm trying to basically rewrite the website. If I can get a few basic problems solve this should be very doable and the result will be something much easier to work with.

 

My first "How do I replicate this" question is how to do get text on the left and right side of the page.

 

Originally it was a table (everything is tables within tables) two columns one left aligns one right aligned so it looks like

 

www.site.com                 home | contact | info

 

do I have to use tables or is there a way to do this with CSS? I've been trying to mess with text-align and span/div but I can't get the two sections to seperate

Posted

It would also work to put each section in its own div and float them left/right respectively.

 

For example:

 

HTML:

 

www.sitename.com

 

 

CSS:

 

#sitename {

width: _____px;

height: _____px;

float: left;

}

 

#nav {

width: _____px;

height: _____px;

float: right;

}

 

Note: I don't recommend using paragraphs for those items, though. Maybe the site name should be an h1 and the nav links should be an unordered list. What I wrote is just for an example...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...