Topic: Getting rid of text |
|
---|---|
Author | Thread |
Neurotic (0) Inmate Newly admitted Neurotic (0) Inmate Newly admitted |
posted 05-11-2002 12:34
ok if i wrap the div in <a></a> then it has space above/below the text. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 05-11-2002 13:54
Dark : I'm not sure what you are trying or what your code looks like but you might be better of using <SPAN> rather than DIV here. If you need the DIV make sure the A tags have no white space between them and the DIV tags and use CSS to get rid of the margins on the DIV. Wrapping an inline tag around a block tag is a tricky one but you can get some interesting effects with a:hover myDiv { style:something } but you can do it the other way around: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-12-2002 07:02
#divname {margin: 0px; padding:0px;} |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-12-2002 22:24
As far as standards go, you're not *allowed* to put <div>s inside <a>s, since div's are block-level and anchors are inline. |