Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts

    Space between two CSS boxes

    Hello

    I have two CSS boxes on a test page here: Hungry Panda Chinese restaurant and in between them there appears to be a narrow dark strip (please see screenshot) which I am trying to remove to allow the default background to show through, but can't work out where that dark strip is coming from! It's not an image and I have gone through my CSS quite thoroughly to identify it.

    The background of the site is a PNG file called green_bg.png and I know it's not that!

    Thanks for any help.

    Blueie
    Attached Thumbnails Attached Thumbnails Space between two CSS boxes-divider_cod_forums.jpg  

  • #2
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,539
    Thanks
    45
    Thanked 259 Times in 256 Posts
    The darkstrip is from the background image attached to #main. Change the image, it'll disappear.

  • #3
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts
    Space between two CSS boxes-background1.png

    Space between two CSS boxes-no_boxes.jpg

    Hello Keleth

    Thank you for your reply.

    I didn't see that!

    I have removed background1.png from #main (I have attached it) and while it does remove that strip down the middle, it also removes the 'frames' to my two boxes (again, please see attached). I didn't realise it was so pivotal. I'm not quite sure where to go from here! Would it be worthwhile recoloring it in an image editor so that it assumes the same background colour as the rest of the page?

    Thanks again.

    Blue

  • #4
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,539
    Thanks
    45
    Thanked 259 Times in 256 Posts
    You can either edit the image, or give the two divs colors. As columns can be tricky, if you're not sure about it, I'd recommend just changing the image.

  • #5
    Regular Coder
    Join Date
    Feb 2014
    Posts
    188
    Thanks
    41
    Thanked 0 Times in 0 Posts
    I'll have a go at changing the image, Keleth, many thanks!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •