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? Link to comment https://forums.phpfreaks.com/topic/69509-problems-with-display-block/ Share on other sites More sharing options...
plutomed Posted September 16, 2007 Author Share Posted September 16, 2007 Anyone? Link to comment https://forums.phpfreaks.com/topic/69509-problems-with-display-block/#findComment-349532 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. Link to comment https://forums.phpfreaks.com/topic/69509-problems-with-display-block/#findComment-349577 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? Link to comment https://forums.phpfreaks.com/topic/69509-problems-with-display-block/#findComment-349668 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. Link to comment https://forums.phpfreaks.com/topic/69509-problems-with-display-block/#findComment-349808 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.