Jump to content


Photo

css / div issue


This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1 scottbruzek

scottbruzek

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts

Posted 09 November 2010 - 07:37 PM

I am trying to get some css on my Custom CSS section to carry over to http://new.drumhike.com/sponsors/. I have tried every combination of id/class to make it work with no luck.

These 3 classes are defined, I need them to carry over to the above page:
 .40l55r {clear: left; padding: 0px 2px 0px 2px; }
	.40left { width: 40%; float: left; padding: 0px 2px 0px 2px; text-align:center; }
	.55right { width: 55%; float: left; padding: 0px 2px 0px 2px; }

I have tried all of the following combos in the Custom CSS section:
body #page div.40l55r
body #page .40l55r
#page div.40l55r
#page .40l55r

and entered <div class="40l55r"> in the div.

Please assist.

#2 nett-ed

nett-ed

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts

Posted 09 November 2010 - 08:05 PM

a css class name must start with an underscore (_), a dash (-), or a letter(a??“z), followed immediately by a letter or underscore, and then any number of dashes, underscores, letters, or numbers. Try renaming your class to __40l55r and use .__40l55r in your custom css code

#3 scottbruzek

scottbruzek

    Advanced Member

  • Members
  • PipPipPip
  • 62 posts

Posted 09 November 2010 - 08:18 PM

Thank you for your assistance. This fixed my issue.