Topic: Getting rid of text Pages that link to <a href="https://ozoneasylum.com/backlink?for=10733" title="Pages that link to Topic: Getting rid of text" rel="nofollow" >Topic: Getting rid of text\

 
Author Thread
Dark
Neurotic (0) Inmate
Newly admitted Neurotic (0) Inmate
Newly admitted
IP logged posted posted 05-11-2002 12:34 Edit Quote

ok if i wrap the div in <a></a> then it has space above/below the text.
how do i get rid of all the space around text in a div?
I know I did something to prevent this before or with a diffrent tag.


Dark

Emperor
Maniac (V) Mad Scientist with Finglongers

From: Cell 53, East Wing
Insane since: Jul 2001

IP logged posted posted 05-11-2002 13:54 Edit Quote

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:
www.meyerweb.com/eric/css/edge/popups/demo.html

If that isn't the answer we'll need to see the code.

Emps

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

IP logged posted posted 05-12-2002 07:02 Edit Quote

#divname {margin: 0px; padding:0px;}

That's off the top of my head.
Also generally I wouldn't wrap divs in href tags. Can you put the <a> within the div tags?



.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

IP logged posted posted 05-12-2002 22:24 Edit Quote

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.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu