Help - Search - Members - Calendar
Full Version: create blank space for form
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
evangeline2
hey guys, my question may seem so simple because I'm new in html blush.gif I was just trying to create a sign up page.. and there's one simple thing I was wondering how can I do it!
how can I create this blank white space to put my form elements on it? my background is blue, but I want my form to be on a white space, in the middle of page.. help pleazzz
http://postimg.org/image/4s1h6lvfd/

pandy
You use CSS to give the form, or a containing DIV depending on how your markup looks, another background color.

Do you already use CSS? If not, click the link CSS Reference in the top and bottom menus here and start reading.

As an example, this would make any form have a white background.

CODE
form    { background: #fff }


This would make everything inside an element with the id foo have a white background, unless something else is specified for a child element.

CODE
#foo   { background: #fff }
Christian J
It's also a good idea to specify text and background color together, to avoid possible conflicts with styling elsewhere.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.