You are here: aligning DIV in css - Noob Question. « HTML « IT news, forums, messages
aligning DIV in css - Noob Question.

Posted by jobs on 05/25/07 15:35

sorry for the noob question.

I know I can position a div tag in hmtl as such..

<div id=ccc style="align:bottom;position:absolute;left:1px;width:
200px;height:300px;border: ghostwhite thin ridge;float-right">
hello
</div>

is there any way to do all of this in css?

I tried this with no luck. I know the css is taking some effect
because i set background-color in the body entry and it worked.

<div id="ccc">
hello
</div>

css:

#ccc
{
position:absolute;
left:200px;
top:400px;
width:200px;
height:300px;
border: ghostwhite thin ridge;
color: red;
background-color:blue;
}

FYI, i doing all of this in asp.net 2.0.

Another question, when should I use DIV and when should I use SPAN?

Thank you for any help or information!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация