plutomed Posted September 15, 2007 Share Posted September 15, 2007 I used 'display: block' to put some links in a block but when I hover over the link it works but it works as well as when I hover next to the link. Is it s'posed to? Quote Link to comment Share on other sites More sharing options...
plutomed Posted September 16, 2007 Author Share Posted September 16, 2007 Anyone? Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted September 16, 2007 Share Posted September 16, 2007 Of course it is supposed to...you've just changed <a> from an inline to a block element. To put <a> (which is inline by default) inside a block you don't turn <a> into a block...you use a block element like <div> (for example). Turning <a> into a block is for other purposes. You need to read a basic css tutorial/manual and it will all become immediately clear. Quote Link to comment Share on other sites More sharing options...
plutomed Posted September 16, 2007 Author Share Posted September 16, 2007 I was just wondering because of that link bit. But is there anyway to make it just the size of the link not the div it's in? Quote Link to comment Share on other sites More sharing options...
bronzemonkey Posted September 17, 2007 Share Posted September 17, 2007 huh? just put a link inside a div! don't use {display:block} in the css for the <a> element. like I said, read a tutorial, it's pretty basic stuff that you need to understand and it will all be over in 5 minutes. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.