Click here to Skip to main content
13,086,019 members (83,795 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hello Everyone,
wish you a great weekend first, can anyone help me out with this problem i.e i need to
remove space between two div or two elements(between "h4" and below div in my example)
i have attached an image and my css i need to keep every other stuff same
    border:solid 1px;
    margin:0 auto;
#accrodion > h4
    cursor: pointer;
    border: solid 1px;
    border-radius: 5px;
#accrodion > div
    border:solid 1px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;

Here is the html file of that code and you can reffer the css above.
    <div id="accrodion">
        <p>You have to create your own html for the accordion. </p>
        <p>You have to create your own html for the accordion.</p>
        <p>You have to create your own html for the accordion.</p>
&copy; Copyright  by Sameer

NOTE: its an jquery accrodion ui and m getting space between "h4" and "div" i dont need but i need to keep other stuff same i.e padding from top (1st h4)and bottom and side inside accrodion please help.

[Edit]Question updated with additional information posted as an answer.[/Edit]
Posted 5-Jan-13 16:14pm
Updated 6-Jan-13 4:14am
And: sample of XML, on what browsers tested, what did you want to achieve, how it was rendered...
Zoltán Zörgő 6-Jan-13 3:04am
And where is that image? But better post the generated html instead of the image.
sameerhuilgol 6-Jan-13 8:57am
sorry for delay sir, here is the html code im my next post do suggest me your views

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

float:left. If you have two divs, and any spaces between, you'll get one space unless you float them across to each other.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 6 Jan 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100