tables/css

  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Joined: Sep 24, 2003
  • Posts: 162
  • Loc: New York
  • Status: Offline

Post June 5th, 2004, 1:49 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 5th, 2004, 1:49 pm

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post June 5th, 2004, 1:57 pm

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
CSS website design tutorials
  • lilstorm
  • Graduate
  • Graduate
  • User avatar
  • Joined: Sep 24, 2003
  • Posts: 162
  • Loc: New York
  • Status: Offline

Post June 5th, 2004, 2:05 pm

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 104 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
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.