How Exactly Do I Use The <div> |
||
Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.
In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.
Zymic Webmaster Forums Web Design & Development Client Side Scripting HTML and CSS |
||
How Exactly Do I Use The <div> |
||
Jan 19 2008, 12:46 AM
Post
#1
|
|
|
Member ![]() ![]() Group: Members Posts: 84 Joined: 9-November 07 Member No.: 2,593 |
Hi,
Just wondering about the <div> code... How exactly do i use div codes? I think i need a CSS sheet am i right? I understand it works like a table, And i can change the WxH like this: <div id="content" style="width: 985; height: 308">test</div> But how would I Position them and center them etc... Centering: <div align="center"> ?? (didn't seem to center very well) And how would I put them side on to each other as a column? Thanks, Vaisor |
|
|
![]() |
Jan 20 2008, 05:55 AM
Post
#2
|
|
![]() Super Ninja ![]() ![]() ![]() ![]() Group: Members Posts: 307 Joined: 25-August 07 From: Berlin, NJ Member No.: 19 |
I think this best explains how to layout a page using divs
|
|
|
Vaisor How Exactly Do I Use The <div> Jan 19 2008, 12:46 AM
Vaisor lol dw just wanted to know how to use divs but im ... Jan 19 2008, 02:26 AM
Cmain Read a book or some tutorials on CSS. To center a ... Jan 19 2008, 03:44 AM
Vaisor aha there we go, thanks man Jan 19 2008, 07:16 AM
MrTouz Using divs is simple, what im gonna write might no... Jan 19 2008, 11:22 AM
Bread Using divs is simple, what im gonna write might no... Jan 19 2008, 12:45 PM
MrTouz FFS STOP TRYING TO TEACH PEOPLE WRONG THINGS.
Sto... Jan 19 2008, 08:48 PM
Crown FFS STOP TRYING TO TEACH PEOPLE WRONG THINGS.
Sto... Mar 16 2008, 10:11 AM
Vaisor ok..
And is there a way to put them so that the a... Jan 20 2008, 05:04 AM
Cmain margin: 0 auto;
That should center the div.
t... Jan 20 2008, 05:27 AM
b-boypshyk margin: 0 auto;
That should center the div.
t... Mar 16 2008, 04:46 AM
Cmain just looking around...im not saying you are wrong.... Mar 16 2008, 02:51 PM
Vaisor Awesome thanks alot guys
[code]margin: 0 auto... Jan 20 2008, 06:24 AM
MrTouz See now what you should do is :
create a .css fil... Jan 20 2008, 09:48 AM ![]() |
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users) |
||
| 0 Members: | ||
Forum Jump |
||
| Lo-Fi Version | Time is now: 25th May 2013 - 03:11 AM |