Click here to get back home

fieldset around form -or- centering within div???

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
fieldset around form -or- centering within div??? bobmct 01-31-2007
Posted by bobmct on January 31, 2007, 12:39 pm
Please log in for more thread options


As an old-time raw HTML code I'm struggling to adapt to using css.
I'm getting there... but slowly.

I do have a question that I cannot find an answer for and perhaps someone
here can advise?

I have an intranet site with a four box layout in css (header, left nav
column, right page container, footer) and the header, left nav and foot
seem to work well.

What I am having difficulty with is the contents of the right page
container. In this particular example I have some images and text and a
form and around this I have a fieldset and legend. I've been struggling to
get the contents of the DIV to center itself as it surely doesn't take up
all the width available. Secondly (and related, I'm sure) my fieldset box
covers the full width of the available area while my form info is only
about 30% of the space.

Currently I've got a text-align: center in my page container ID section but
I know that is NOT the best way.

Can someone please advise the BEST way to handle the general alignment of
content in a content section and also how to control the width of the
fieldset?

Thanks all.

bobmct


Posted by Jukka K. Korpela on January 31, 2007, 4:06 pm
Please log in for more thread options


Scripsit bobmct:

> I have an intranet site with a four box layout in css

This groups is for discussing HTML authoring for the WWW. If you can make
use of the discussions when authoring intranet pages, fine. If you wish to
explain a particular problem, you should create a demo page on the WWW and
post the URL, and you should realize that in this group, people are supposed
to discuss in WWW terms.

> In this particular example I have some images and text
> and a form and around this I have a fieldset and legend.

Generally, if a form is useful, it should appear on a page where that very
form is the content and king, instead of playing as a sidekick. Site search
forms might be an exception, but they tend to be very simple and small.

> Currently I've got a text-align: center in my page container ID
> section but I know that is NOT the best way.

The CSS setting text-align: center specifies that each line in a block be
centered (independently of other lines), though some old faulty browsers
implement it differently. Anyway, it's CSS, not HTML. It's difficult to say
(especially without a URL) whether you have an HTML problem, a CSS problem,
or both.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Similar ThreadsPosted
Fieldset June 17, 2008, 12:58 pm
fieldset height February 13, 2007, 10:03 am
Use of
/ in Tables
January 12, 2006, 3:59 am
Fieldset size question? February 27, 2007, 2:13 pm
firefox
oddity?
November 19, 2007, 1:05 pm
How to make fieldset auto size to its inner content? June 28, 2007, 10:32 pm
Centering a DIV within a DIV? October 27, 2005, 2:31 pm
CSS issues with IE - not centering div November 14, 2007, 12:04 pm
Centering a Table April 11, 2008, 2:07 pm
centering page April 29, 2008, 1:06 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap