Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
CSS Documentation & Unwanted Space
posted

I'm a noob.  I have added a WebDropDown to my page without applying any formatting.  The code is:

                <ig:WebDropDown ID="QuickLinks" runat="server" Width="200px" ToolTip="Jump quickly to a Manchester web page.">
                    <Items>
                        <ig:DropDownItem NavigateUrl="http://its.manchester.edu" Selected="False" Target="_blank" Text="ITS" Value="">
                        </ig:DropDownItem>
                        <ig:DropDownItem NavigateUrl="http://espn.go.com" Selected="False" Target="_blank" Text="ESPN" Value="">
                        </ig:DropDownItem>
                    </Items>
                </ig:WebDropDown>

This is what the drop down list looks like when run in any browser.

Here's the only applied CSS to the page.

/* RESET FIRST!  THANKS ERIC MEYER! */

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* MAIN SECTION */

.bold {
    font-weight: bold;
}

.center {
    text-align: center;
}

.clear {
    clear: both;
}

.float-left {
    float: left;
}

.float-right {
    float: right;
}

footer {
    background-color: black;
    color: white;
    bottom: 0em;
    padding: 1em;
    position: absolute;
    width: 100%;
}

html {
    background: linear-gradient(to bottom right, #EEEEEE 0%, #CCCCCC 100%) top 144px left;
    color: #222;
    font-family: "ff-meta-web-pro", Georgia, Verdana, serif;
    min-height: 100%;
    min-width: 100%;
}

h1 {
    font-size: 2.0em;
}

h2 {
    font-size: 1.4em;
}

header {
    background-color: white;
    overflow: hidden;
    padding: 31px;
    padding-bottom: 22px;
    padding-left: 6%;
}

#main {
    background-color: white;
    border: 1px solid #222;
    border-radius: 10px;
    margin: 0 auto;
    padding: 2em;
    width: 90%;
}

nav {
     background-color: #EEB111;
     border-bottom: 1px solid #222;
     border-top: 1px solid #222;
     margin-bottom: 1em;
     padding: 1em;
     padding-left: 6%;
     padding-right: 6%;
}

    nav ul {
        background-color: inherit;
        font-size: 1.1em;
        text-align: right;
    }

p {
    font-size: .9em;
    padding: .25em;
}

.underline {
    text-decoration: underline;
}

This is for .NET 4.5 and with 2013.1.

How do I get rid of the spacing at the bottom?  Is there good documentation on the CSS behind Infragistics controls?

Thanks,
Michael

Parents
  • 17590
    Offline posted

    Hello Michael,

    Thank you for posting in the community.

    After investigating you CSS classes what I can suggest for removing the extra space at the bottom of the WebDropDown input area is removing the vertical-align property of you class that is going to be aplied to the html, tables,body etc. This property sets the vertical alignment of an elemnt and it`s default value is baseline, which means that it will align the baseline of the element with the baseline of the parent element.

     

           

    html, body, div, span, applet, object, iframe,

    h1, h2, h3, h4, h5, h6, p, blockquote, pre,

    del, dfn, em, img, ins, kbd, q, s, samp,

    small, strike, strong, sub, sup, tt, var,

    b, u, i, center,

    dl, dt, dd, ol, ul, li,

    fieldset

    , form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,

    article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup,

    menu, nav, output, ruby, section, summary,

    time, mark, audio, video {

       box-sizing: border-box;

       margin: 0;

      padding: 0;

       border: 0;

       font-size: 100%;

       font: inherit;

    /*vertical-align: baseline;*/

    }

    Regarding your second question, CSS styles applied to Infragistics contorls could be found in the ig_res folder -> Defaul (Default is the name of default StyleSet defined for your application. If you have different style sets used the name of the folder will be the same as the name of the StyleSet). Some further reference about which CSS files are used by which controls could be found at:

    http://es.infragistics.com/community/blogs/engineering/archive/2010/08/10/which-are-my-css-files.aspx

     

    I hope this helps. Let me know if you have any additional questions regarding this matter.

     

     

     

     

Reply Children