![]() |
|
I need css Assistance - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: I need css Assistance (/Thread-I-need-css-Assistance) |
I need css Assistance - user404 - 08-26-2015 ello I'm trying to fix my contact form and I wish to make my center can anyone help? RE: I need css Assistance - Exkr - 08-26-2015 (08-26-2015, 08:58 AM)user404 Wrote: ello Can you post your CSS? Are you trying to centre your form or do you need help creating the whole form? RE: I need css Assistance - Inori - 08-26-2015 If I read your post properly, you just want to center your form? if that's the case, just throw the form in a <div> tag, id it, then text-align it in your css Before: Code: <!DOCTYPE html>
<head>
<title>CSS Thing</title>
</head>
<body>
<h1>hi</h1>
</body>
</html>After (I'm lazy, so I'm putting the CSS in with the HTML): Code: <!DOCTYPE html>
<head>
<title>CSS Thing</title>
<style type="text/css">
#wrapper {text-align: center;}
</style>
</head>
<body>
<div id="wrapper">
<h1>hi</h1>
</div>
</body>
</html>RE: I need css Assistance - user404 - 08-26-2015 yes all i want is to center it (08-26-2015, 12:37 PM)Jare Wrote: Can you post your CSS? Are you trying to centre your form or do you need help creating the whole form? https://jsbin.com/gofaqa/edit?html,css,output here is css RE: I need css Assistance - Satan - 08-27-2015 (08-26-2015, 11:02 PM)user404 Wrote: yes all i want is to center it Okay dude, your code is very confusing. What are you defining your form element as? Idk if its the site itself that is just not showing how it looks after I try to modify it or what. I'll start into fixing it, at the very least, I've fixed a few errors/possible design flaws. I might be mistaken but you may also be repeating elements without modifiers as well. This is what I've done so far, not much as it is a lot to go through lol: http://pastebin.com/pkARiPu6 RE: I need css Assistance - user404 - 08-27-2015 (08-27-2015, 12:15 AM)Jinx Wrote: Okay dude, your code is very confusing. thank you for the help RE: I need css Assistance - Satan - 08-27-2015 (08-27-2015, 01:26 AM)user404 Wrote: thank you for the help Ok you need to make your form container to the size of your box, then use margins set to auto, and define a percentage width, and it *should* make the forum centered in the box, but not page. RE: I need css Assistance - Equinox - 08-27-2015 Depending on the element, you would have to change some attributes. Setting the margin to automatic should work, for the most part. There are some, though very little exceptions to this. RE: I need css Assistance - XORA - 08-27-2015 If you still need help with this, i can help you, pm me. |