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
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;*/ }
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://ko.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.
Thanks! Changing vertical-align did the trick.
I understand that there are .css files for each control. What I'm looking for is information on the various classes in each .css file. Some of the classes have minimal documentation but others have none at all.
Hello mcase,
I am glad that you have been able to resolve your issue.
Currently a detailed styling guide is avaliable for WebDatagrid. Some further reference could be found at:
http://ko.infragistics.com/community/blogs/engineering/archive/2010/08/25/webdatagrid-css-styling-guide.aspx
Additinaly, what I can suggest is consider using Application Styling Framework(ASF). Using the ASF, you can create one style(known as StyleSets) and apply it to any of your applications. Some further reference about Application Styling Framework could be found at:
http://help.infragistics.com/NetAdvantage/ASPNET/2012.2/CLR4.0/?page=Web_Application_Styling_Framework_ASF.html
I hope this helps. Feel free to contact me if you have any additional questions regarding this matter.
Feel free to contact me if you have any additional questions regarding this matter.