140 posts
  • 7 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
za
says

i can’t for the life of my figure out why this isn’t working so i thought i’d reach out to the css gods. basically its just a list and every item contains an h3 element with a right floating span displaying the date. i want the entire h3 to act as a link via display:block. what did i screw up?

html: http://pastie.org/376570 css: http://pastie.org/376569

640 posts
  • Affiliate Level 8
  • Author Level 14
  • Collector Level 4
  • Front Page Master
+12 more
Kriesi
says

Works for me, I can click the date as well as the text and it acts as a link.

If your question is how to align the date in the same line as the text: you have to wrap the text “Gaia Framework hahahahaha” into an extra span with the css property float left.

104 posts
  • Author Level 3
  • Collector Level 2
  • Weekly Top Seller
  • Featured Author
+4 more
thomasfedb
says

Or absolutaly position the span in relation to the link and then use some left margin to push it over.

Thats how i would do it, minimal markup….

140 posts
  • 7 Years of Membership
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
za
says

thanks guys that saved me! i ended up with the following

html: http://pastie.org/377073 css: http://pastie.org/377071

by
by
by
by
by
by