Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1217 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Entire Div a Link, w/o Javascript, Valid, Standards-Friendly -- Help?

Thread title: Entire Div a Link, w/o Javascript, Valid, Standards-Friendly -- Help?
Closed Thread  
Page 2 of 2 < 1 2
    Thread tools Search this thread Display Modes  
10-27-2008, 10:49 PM
#11
rochow is offline rochow
rochow's Avatar
Status: Member
Join date: Oct 2006
Location: Australia
Expertise:
Software:
 
Posts: 297
iTrader: 4 / 100%
 

rochow is on a distinguished road

Send a message via MSN to rochow Send a message via Skype™ to rochow

  Old

Originally Posted by WiredOrange View Post
True, however there's a clear distinction between helpful criticism and being an ass.
And there's also a clear distinction between taking criticism well, and taking it like a know-it-all 3 year old.

10-28-2008, 02:33 AM
#12
calebmclark is offline calebmclark
Status: I'm new around here
Join date: Aug 2008
Location:
Expertise:
Software:
 
Posts: 3
iTrader: 0 / 0%
 

calebmclark is on a distinguished road

  Old

Originally Posted by WiredOrange View Post
True, however there's a clear distinction between helpful criticism and being an ass.
I wouldn't say that either were respectful in their conversation.

10-28-2008, 11:53 AM
#13
noodles is offline noodles
Status: Junior Member
Join date: May 2005
Location:
Expertise:
Software:
 
Posts: 44
iTrader: 0 / 0%
 

noodles is on a distinguished road

  Old

I have found a solution for your problem..

html:

HTML Code:
<div class="wrap">
		<a href="checkthisout.html" class="biglink"><!-- this is the link that links the entire post --></a>
	
		<h1>Some headline</h1>
		<p>
			Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Mauris a dui. Duis mattis lorem eu lorem. Cras imperdiet 
			lectus eget risus posuere posuere. Curabitur vitae nunc. Sed <a href="inline">nisl</a> nulla, varius in, porta at, commodo nec, magna.
			Fusce porttitor tempus dui. Fusce consectetuer, massa quis pellentesque condimentum, magna tellus pulvinar tortor, 
			nec placerat nunc tortor interdum massa. Aenean sodales dui sit amet ligula. Proin quis urna. Nunc feugiat. 
			Phasellus ornare vestibulum orci. <a href="inline">Curabitur convallis</a> rutrum ligula. Sed in neque. Mauris ultrices tellus 
			ac massa. Integer fringilla. Donec gravida. Morbi quis nisi quis est tristique ultrices. Suspendisse at 
			
			magna vitae pede aliquet auctor.
		</p>
	
	</div>
CSS:

HTML Code:
div.wrap{
	position:relative;
	width:300px;
	overflow:hidden; /* this cuts off the part of the link that overlaps the div.wrap */
}

div.wrap a{
	z-index:2;
	position:relative;
	/* this puts the inline links above the big link */
}
div.wrap a.biglink{	
	position:absolute;
	height:1000px; /* just a really big height, so the entire post is covered (the part that overlaps is cut off, so don't worry) */
	width:100%;
	display:block;
	z-index:1;
	background-image:url(spacer.gif); /* just a 1x1 px transparent gif, required to make the link work */
}

tested in opera 9, ff2 and ie6 on PC, hope it also works on other browsers.

hope I could help you

note: I used the "height:1000px;" and "overflow:hidden;" method, because ie6 didn't accept height:100% on the biglink.. even when I also gave the wrap a height of 100%. this usually works for me, but not in this case :/

edit: I found a problem: users won't be able to select text anymore, because theres a link in the way.. which is not userfriendly at all. I doubt there's a solution that's both userfriendly and valid..

10-28-2008, 11:30 PM
#14
rochow is offline rochow
rochow's Avatar
Status: Member
Join date: Oct 2006
Location: Australia
Expertise:
Software:
 
Posts: 297
iTrader: 4 / 100%
 

rochow is on a distinguished road

Send a message via MSN to rochow Send a message via Skype™ to rochow

  Old


which is not user friendly at all
... which is what I said from the start

Closed Thread  
Page 2 of 2 < 1 2


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed