Jump to content
  • Advertisement
Sign in to follow this  
makronika

Off topic web development.

This topic is 2067 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello. I have tried couple of Web development forums and no one seems to reply on my question, I thought that forum is active so I might as well give it a go with my question:

Can someone post a code that I can make a box (border) on the middle of the page also I want the information to be inside the box too and have a different colour then the background. I gave an attachment what I mean. I would appreciate if someone would help!

Share this post


Link to post
Share on other sites
Advertisement

We don't just hand over pre-written code to solve your problems, and if that's what you've been asking for on other forums I'm not all that surprised that you haven't received any replies.

 

What we can do is help you out with writing your own code: we can point you in the direction of places where you can learn how it's done, and after you've made your own attempt we can help you to solve any problems you're still having.

 

 

You'll need some basic HTML code to create the elements on your page, and you'll need CSS to write the styling rules; adjusting the positioning, changing colours, etc.

To learn HTML you might try the "learn HTML" section on the Mozilla Developer Network and/or the HTML tutorial at w3schools.  I'd suggest starting from the basics and working your way through, but the specific element you'll need are forms (alternative link).

To learn CSS you might again try the "learn CSS" section on the Mozilla Developer Network and/or the css tutorial at w3schools.

 

More specifically, here is a tutorial (including sample code) covering the basics of styling web forms using CSS, and to centre your form you'll want to use the first technique (setting left and right margins to auto) described in this article on horizontal alignment with CSS.  If you really just want some code you can probably grab the sample code provided and experiment, but I'd strongly suggest at least reading up on the basics first.

 

 

Alternatively, if you really don't want to learn about HTML and CSS and just want this one-off piece of code you could use a form generator (such as this one) rather than writing or looking for code, or could create your form using a WYSIWYG software package such as DreamWeaver.

 

 

Hope that's helpful! smile.png

Share this post


Link to post
Share on other sites

look for something called "border" and "center" in .css/html. Also you need to think in "div" boxes. Now I have given you some very useful clues that you can work with.

 

A very good website for .css is this .

 

Hope that helps out

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!