Page not picking up css class

Hi there I have an ASP.NET page in which I have various <div> tags controllling the layout of my controls.

My problem is that if I do the following:
<div align="left">

My divs are left aligned as I would expect them to be however I don't want to explicitly define the alignment as I may want to change it so instead I want to use a class so I can amend all tags in one place
so I have defined a class as follows:
then have my <div> tags look like <div class="myclass">blah</div> but this doesn't work.
Can anyone tell me how I define the alignment correctly in a css class.

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ivo StoykovCommented:
  text-align: left;  

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Your problem is simple, just do the following:
in HTML:

<div id='myCoolDiv'> </div>

And in the css:
#myCoolDiv{   border: 1px solid green;}

That should do it.
Here is the deal, when you use the class tag in HTML your css class must start with ".", in this example it would be .myCoolDiv and if you use id tag, then you use the #.
Samm1502Author Commented:
This worked - many thanks
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.