tables/css

  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Posts: 162
  • Loc: New York

Post 3+ Months Ago

Help please ;)

I am making a calendar and I want all the numbers to align to the top left well instead of typing out align=left valign=top in every single td tag. I thought of using css like this-

Code: [ Select ]
<style type="text/css">
<!--
td {background:blue;}
-->
</style>
  1. <style type="text/css">
  2. <!--
  3. td {background:blue;}
  4. -->
  5. </style>


except instead of background, I wanted to put align left, etc...
but it isn't working. And I can't find anything to help hmm. Any clues to help? Or is there an easier way? I am probably going about this so stupid like ugh ;(

Thanks for any help.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

Code: [ Select ]
<style type="text/css">
<!--
td {
  text-align:left;
  vertical-align:top;
}
-->
</style>
  1. <style type="text/css">
  2. <!--
  3. td {
  4.   text-align:left;
  5.   vertical-align:top;
  6. }
  7. -->
  8. </style>


I just did a google for CSS properties as well and got this page:

http://www.htmlhelp.com/reference/css/properties.html

Most of the properties are clearly named (like text-align, vertical-align, visibility, font-size etc) so often it's easy to find the ones you are looking for by just looking for the name that best matches what you are trying to achieve
  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Posts: 162
  • Loc: New York

Post 3+ Months Ago

Thanks! Yeah I am not too great with css stuff obviously lol. I am trying to learn. Thanks for that site its neat. And it worked.

I have been working on this calendar for like a week and its just bugging me now lol. Thanks again.

and sorry for posting this twice ;( ugh long day.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 80 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.