Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

Michael Bragg
Michael Bragg
811 Points

Changing PHP Forms from HTML to PHP and Styling.

. I'm building a large data-driven website. Many forms and textfields, select boxes and check, along with radio buttons. My question is this:

I can build the website pages in HTML, but how to I get them to layout correctly from vertically stacked to horizontally wrapped?

5 Answers

jamesjones21
jamesjones21
9,248 Points

within your html, create a <div class="row"> the class row can then have a css property of display: inline-block, that should start you off with getting everything stacked horizontally. But worth sharing your code to also help.

Kind regards, James

Michael Bragg
Michael Bragg
811 Points

James,

Most of the code HTML, PHP is forms for my web site that I've been working on for years, and now I'm changing from HTML to PHP with CSS and JS. Does each control needs it's own <div row tag? Also, when naming, what is a good practice?

jamesjones21
jamesjones21
9,248 Points

can you show me your current setup for your form ?

Michael Bragg
Michael Bragg
811 Points

Do you want a URL, or a file?

jamesjones21
jamesjones21
9,248 Points

Provide the url an what you want, an I'll try an guide you in what you need to do :)

Michael Bragg
Michael Bragg
811 Points

James,

To shorten this up, can we speak by phone. I've had four strokes, and two heart-attacks. My number is 605 212 2982. Thank you.

Michael Bragg
Michael Bragg
811 Points

I see you are in the UK, sorry. The URL is http://www.ezmortuarymanagement.com/demo user: test2 pass: 1