Forum Moderators: open

Message Too Old, No Replies

Floating DIV's

Any way to add a little space?

         

BlueScreen

12:29 pm on Jul 2, 2005 (gmt 0)

10+ Year Member



Well, I've recently been experimenting with floating div's to try and add extra content to the side.

It works well, except for the problem that the text outside the div, the normal content of the page is right up against the edge of the div border

Is there any way to add a little gap inbetween? I've tried everything I can think of to no avail

I tried to take a screenshot to better show what I mean. Basically, the shaded in bit on the left is the floating div, and the text on the right is the normal text. As you can see, there is absoloutely no gap between, and that is what I would like to fix

<Sorry, no personal URLs.
See Terms of Service [webmasterworld.com]>

I'd apreciate any help or ideas that anyone might have

[edited by: tedster at 4:59 pm (utc) on July 2, 2005]

drhowarddrfine

3:13 pm on Jul 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



margin-left:1em;

Span

3:20 pm on Jul 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, text should always be between paragraph tags - and then it's easy, just add some padding..