140 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
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

631 posts
  • Has referred more than 5000 members
  • Has sold $2M+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Had an item featured in a magazine
+9 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
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Made it to the Authors' Hall of Fame
  • Sells items exclusively on Envato Market
+3 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
  • Has been part of the Envato Community for over 6 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
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