You are here: Re: Using CSS for best layout - experts help please « HTML « IT news, forums, messages
Re: Using CSS for best layout - experts help please

Posted by Els on 11/30/07 20:26

news.freedom2surf.net wrote:

> http://62.149.36.16/~generic9/index-plainexaml.htm

Since you want to learn, first this:
The doctype isn't valid.
You have:
<!DOCTYPE html PUBLIC "-//W3C/DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/DTD/strict.dtd">

That should be:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Make a habit of checking your code in the validator, and you'll catch
errors like that easily. With a valid doctype, your pages will have
more chance of being displayed correctly in different browsers.
http://validator.w3.org/

You also forgot the <title> element in the <head>. This is compulsory.

> I'm creating the above page, but what I'm trying to acheive is that top
> right nav menu items (Contact Join us etc. ) are to the right most of the
> screen they can be.

You floated their container right, but set the text-align to
"inherit". Apparently it's inheriting 'left'. Set it to 'right'
instead.

> If I add new menu tems to this menu it would be nice if the always stayed on
> one line and always stayed that the final item is on the most right.

In that case, I think you should not float it to the right with a 50%
width. As soon as you will have more items than fit in half you page's
width, it would wrap. (still to the right though, if you use
text-align:right; on the container)

> Also the text that says "Another Interactive logo here -..etc." (which will
> probably be replaced by a flash moive). I wanted this placed on the left of
> the content.

You have set text-align:center; on the body, and if you don't change
that for its children, they will also be centered. If you want that
line of text to the left (and you probably will want the rest of your
page's text left-aligned as well), set 'text-align:left;' on the
container div.(div#mainContent). Then everything will be left aligned,
except for where you specifically set it otherwise.

> I've tried to be very good with the use of my CSS, but I'm still a newbie
> really but learning.

We've all started as newbies - you'll learn :-)

--
Els http://locusmeus.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация