Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

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.

left Zymic Webmaster ForumsWeb Design & DevelopmentClient Side ScriptingHTML and CSS right
left right
Vaisor
post 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

Go to the top of the page 
 
  + Quote Post
 
Start new topic
Replies
Cmain
post Jan 20 2008, 05:27 AM
Post #2


Outrageously Uber Ninja
*******

Group: Moderators
Posts: 1,102
Joined: 2-June 07
From: United States
Member No.: 14



CODE
margin: 0 auto;

That should center the div.

CODE
text-align: left;

That should align the text.
Go to the top of the page 
 
  + Quote Post
b-boypshyk
post Mar 16 2008, 04:46 AM
Post #3


Newbie
*

Group: Members
Posts: 7
Joined: 16-March 08
Member No.: 14,229



QUOTE(Cmain @ Jan 20 2008, 05:27 AM) *
CODE
margin: 0 auto;

That should center the div.

CODE
text-align: left;

That should align the text.



just looking around...im not saying you are wrong...im asking i thought auto doesnt always work...dont know if its on firefox or if its on ie but i thought one of those doesnt recognize the auto code...
Go to the top of the page 
 
  + Quote Post
Cmain
post Mar 16 2008, 02:51 PM
Post #4


Outrageously Uber Ninja
*******

Group: Moderators
Posts: 1,102
Joined: 2-June 07
From: United States
Member No.: 14



QUOTE(b-boypshyk @ Mar 16 2008, 12:46 AM) *
just looking around...im not saying you are wrong...im asking i thought auto doesnt always work...dont know if its on firefox or if its on ie but i thought one of those doesnt recognize the auto code...


It should work in all modern browsers.
Go to the top of the page 
 
  + Quote Post

Posts in this topic

 Closed Topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 20th June 2013 - 07:08 AM