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
MrTouz
post Jan 20 2008, 09:48 AM
Post #2


Outrageously Uber Ninja
*******

Group: Members
Posts: 1,196
Joined: 19-September 07
Member No.: 234



See now what you should do is :

create a .css file :

name your div and add the info to it like :

CODE
div#text {
margin: 0 auto;
text-align: left;
width: 307px;
height: 110px;
font-size:2px;
color:#3F4A59;
}


CODE
<div id="text">
fgdfg
<p>

</p>
</div>


See in your css you regrouped the style and the html coding for your font size and color, all that in the same div.
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 - 02:52 AM