ok i got the thing launched. anyone have any clue as to why the nav at the bottom will not expand past the poll section? i am assuming its css error but i cant figure it out..
www.frogmoreaeroclub.com
also on my manage poll page i cant get the css to work. you guys will not be able to see it but here is the code i use on that page and below this i will post my css file
<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="Poll_Manage.aspx.cs" Inherits="Poll_Manage" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div id="body">
<div>
<h3>Polls</h3>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
DataKeyNames="PollId" Width="100%" DataSourceID="SqlDataSource1" OnRowUpdating="GridView1_RowUpdating">
<Columns>
<asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
<asp:BoundField DataField="Question" HeaderText="Question" SortExpression="Question" />
<asp:BoundField DataField="CreationDate" HeaderText="Date" SortExpression="CreationDate" />
<asp:HyperLinkField DataNavigateUrlFields="PollId" DataNavigateUrlFormatString="~/Poll_Answers.aspx?PollId={0}"
HeaderText="Ga naar" Text="»»»" />
</Columns>
</asp:GridView>
</div>
<!-- Left column -->
<div id="columnleft">
<a name="content_start" id="content_start"></a>
<div>
On this page you can add new Polls. Steps:
<ul>
<li>First add a question or a statement</li>
<li>Next, add a few possible answers for your question or statement.</li>
</ul>
</div>
</div>
<!-- Right column -->
<div id="columnright">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ClubSiteDB %>"
SelectCommand="SELECT [PollId], [Question], [CreationDate], [MemberId] FROM [PollQuestions]"
DeleteCommand="DELETE FROM [PollQuestions] WHERE [PollID] = @original_PollId"
InsertCommand="INSERT INTO [PollQuestions] ([PollId], [Question], [CreationDate], [Memberid]) VALUES (@pollId, @question, @creationDate, @memberid)"
OldValuesParameterFormatString="original_{0}" UpdateCommand="UPDATE [PollQuestions] SET [Question] = @question, [CreationDate] = @creationDate WHERE [PollId] = @original_PollId">
</asp:SqlDataSource>
<div>
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="PollQuestionId"
Height="50px" Width="100%" DataSourceID="SqlDataSource1" DefaultMode="Insert" OnItemInserting="DetailsView1_ItemInserting">
<Fields>
<asp:BoundField DataField="PollQuestionId" HeaderText="Question" InsertVisible="False" ReadOnly="True"
SortExpression="PollQuestionId" />
<asp:TemplateField HeaderText="Question" SortExpression="topic">
<InsertItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Question") %>'></asp:TextBox>
<asp:RequiredFieldValidator ControlToValidate="TextBox1" ValidationGroup="Insert"
ID="RequiredFieldValidator1" runat="server" ErrorMessage="Question is required">*</asp:RequiredFieldValidator>
</InsertItemTemplate>
</asp:TemplateField>
<asp:CommandField ValidationGroup="Insert" ShowInsertButton="True"
ShowCancelButton="False" InsertText="Add Poll" />
</Fields>
</asp:DetailsView>
</div>
</div>
</div>
</asp:Content>
and here is my CSS file
body
{
font-family: Tahoma, Verdana, Helvetica, Helvetica-Narrow, sans-serif;
margin: 0px;
background: #FED36B url(images/background_main.jpg) repeat-y center top;
font-size: 0.7em;
}
a:link
{
color: #8A3700;
}
a:visited
{
color: #542100;
}
a:hover
{
text-decoration: none;
color: #A45521;
}
a:active
{
text-decoration: none;
color: #000000;
}
input, select, textarea
{
font-size:1em;
font-family: arial, Verdana, Helvetica, Helvetica-Narrow, sans-serif;
}
/* Use headers in the markup for accessibility reasons but control look with styles below*/
h1, h2, h3, h4, h5, h6
{
margin: 2px 0 2px 0;
}
h1
{
font-size: 28px;
font-weight: bold;
margin: 5px 0 5px 0;
}
h1 a:link, h1 a:visited, h1 a:hover, h1 a:active
{
text-decoration: none;
color: #000000;
}
.membercard h3
{
font-size: 1em;
}
#loginbanner h2
{
font-size: 1em;
font-weight: normal;
margin-top: 8px;
}
#poster h2
{
font-size: 13px;
font-weight: bold;
color: #50700E;
}
.leftblock h2, .rightblock h2, .fullwidth h2
{
font-size: 1.6em;
}
.rightblock h3
{
font-size: 1em;
font-weight: bold;
margin: 0px;
padding: 0px;
display: block;
}
.eventmonth h3
{
padding-left: 20px;
padding-right: 20px;
}
.eventlist label
{
font-weight: bold;
padding-right: 4px;
}
/************************************************************************
*
* Main navigation used by the masterpage
*
************************************************************************/
/* Picture at the top of the site */
#poster
{
background: url(images/poster.jpg) no-repeat;
margin-right: auto;
margin-left: auto;
width: 726px;
height: 139px;
margin-top: 17px;
}
/* Navigation strips */
#navtop, #navbottom
{
background: url(images/background_nav_main.gif) repeat-x;
font-size: 11px;
font-weight: bold;
font-family: Verdana, Helvetica, Helvetica-Narrow, Tahoma, sans-serif;
margin-right: auto;
margin-left: auto;
width: 726px;
height: 45px;
}
#navbottom
{
margin-top: 15px;
}
#footer
{
width: 726px;
margin-right: auto;
margin-left: auto;
text-align: center;
margin-top: 10px;
padding-bottom: 22px;
color: #C89F3D;
}
/* Make main navigation bars from a unordered list for easy update and better accessibility */
#navtop ul, #navbottom ul
{
margin: 0px;
padding-top: 9px;
list-style-type: none;
height: 19px;
text-align: center;
}
#navtop ul li, #navbottom ul li
{
display: inline;
color: #FFFFFF;
margin-right: 25px;
}
#navtop a:link, #navbottom a:link, #navtop a:visited, #navbottom a:visited
{
color: #FFFFFF;
text-decoration: none;
}
#navtop a:hover, #navbottom a:hover
{
text-decoration: underline;
}
#navtop a:active, #navbottom a:active
{
color: #FEFFBD;
text-decoration: none;
}
/************************************************************************
*
* Formatting common to most pages
*
************************************************************************/
/* Main part of the page that holds contents */
#body
{
width: 726px;
margin-top: 7px;
margin-right: auto;
margin-left: auto;
position: relative;
}
/* 2 column layout */
#columnleft
{
float: left;
width: 240px;
/*position: relative; */
}
#columnright
{
margin-left: 245px;
/* position:relative; */
}
.leftblock
{
border: 1px solid #DBDB79;
padding: 15px;
margin-bottom: 10px;
background: #FEFAAB url(images/background_columnleft.gif) repeat-y;
vertical-align: top;
}
.rightblock
{
border: 1px solid #DBDB79;
padding: 15px;
margin-bottom: 10px;
background: #FEFFAB url(images/background_columnright.gif) repeat-y;
position: relative;
width:446px;
}
.clear2column
{
margin:0;
padding:0;
line-height:0;
font-size:0px;
height:0px;
clear: both;
}
/* A full width block on the page */
.fullwidth, #loginbanner
{
border: 1px solid #DBDB79;
width: 694px;
margin-right: auto;
margin-left: auto;
background: #FEFFAB url(images/background_fullwidth.jpg) repeat-y;
margin-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
padding-top: 10px;
padding-bottom: 10px;
text-align: left;
}
/* for the login block
picks up most of its properties from .fullwidth */
#loginbanner
{
padding-bottom: 0px;
}
/* Goes around controls that need to be presented as a block of functionality */
.controlblock
{
border: 1px solid #DBDB79;
padding: 3px;
margin: 2px 0 5px 0;
vertical-align: top;
}
/* shows a visual seperation */
.dashedline
{
border-bottom: 1px dashed #DBCE6A;
padding-top: 10px;
margin-bottom: 10px;
clear:right;
}
/* Command buttons on pages */
.actionbuttons
{
text-align:right;
position: relative;
padding: 1px 1px 1px 1px;
}
/************************************************************************
*
* Calendar specific formatting
*
************************************************************************/
/* Surrounds the calendar */
.eventmonth
{
border: 1px solid #DBDB79;
width: 694px;
margin-right: auto;
margin-left: auto;
background: #FEFFAB url(images/background_fullwidth.jpg) repeat-y;
margin-bottom: 10px;
padding-left: 15px;
padding-right: 15px;
padding-top: 10px;
text-align: center;
}
/* used as the cssclass of the actual calendar */
.eventmonthtable
{
width: 694px;
margin-right: auto;
margin-left: auto;
position: relative;
margin-bottom: 15px;
border: 1px solid #DBDB79;
border-collapse:collapse;
}
.dayNumber
{
float: right;
border-bottom: 1px solid #C7C272;
border-left: 1px solid #C7C272;
clear: none;
padding: 2px;
}
.calcurrentmonth
{
/* no styles needed at this time */
}
.calothermonth
{
background-color: #DCD78E;
}
.calcurrentday
{
background-color: #FFFFC1;
}
.calweekend
{
background-color: #FEEB95;
/* width: 15%; */
}
.calcurrentmonth , .calcurrentmonth , .calothermonth , .calcurrentday , .calweekend
{
text-align: left;
border: 2px solid #C7C272;
height: 60px;
vertical-align: top;
/* needed for positioning the dayNumber part */
position:relative;
border-collapse:separate;
border-spacing: 5px;
}
/************************************************************************
*
* Next / previous specific formatting
*
************************************************************************/
.nextlink
{
position:absolute;
right:0;
padding-right:15px;
}
/************************************************************************
*
* Global formatting
*
************************************************************************/
/* all the legend tags use this same style */
legend
{
font-weight: bold;
color: #666666;
font-size: 1em;
padding-left: 4px;
padding-right: 4px;
margin-bottom: 7px;
}
/* apply zero margin to all forms and hide fieldset borders. Keep fieldset borders in the markup for better accessibility */
form
{
margin: 0px;
}
fieldset
{
margin: 0px;
padding: 0px;
border: none;
}
/* sometimes we hide elements from display in visual browsers (but leave them in the source for non visual browsers and for accessibility) */
.hidden
{
visibility: hidden;
}
.none
{
display: none;
}
/************************************************************************
*
* Image functionality
*
************************************************************************/
.photo
{
background: #FEFFC8 url(images/background_thumbnail.jpg) repeat-x center;
border: solid 1px #E8DCA3;
padding: 5px;
}
.picture
{
background: #FEFFC8 url(images/background_thumbnail.jpg) repeat-x center;
border: solid 1px #E8DCA3;
padding: 5px;
margin: 5px;
}
/* add hover border to href thumbnail images */
/*todo: rectify whether these should be .photo instead
.thumbnail a:link img, #thumbnail a:visited img
{
border: 2px solid #883D08;
}
.thumbnail a:hover img
{
border: 2px solid #FFFFFF;
}
.thumbnail a:active img
{
border: 2px solid #000000;
}
*/
/************************************************************************
*
* List type pages
*
************************************************************************/
/* represents each item in a vertical list */
.listitem
{
margin:0px 0px 0px 0px;
width:444px;
}
/* surrounds the buttons for list items */
.editbuttons
{
padding-top: 6px;
}
/* floats the thumbnail off to the right */
.thumbnail
{
float: right;
margin: 0 0 0 5px;
}
/*used to clear the float for the thumbnail */
.clearlist
{
clear:right;
margin:0;
padding:0;
height: 0px;
font-size:0px;
line-height:0px;
}
/* Used by the page number control */
.PageNumbers
{
display:inline;
}
.PageNumbers span
{
padding-left: 3px;
}
.newscrumbs a
{
font-weight: bold;
padding-right: 2px;
}
/* Used in the two column lists */
.membercard
{
background-color: #FEFEB1;
border: 1px solid #E8DCA3;
padding: 10px;
margin-bottom: 10px;
width: 198px;
}
.clearcard
{
clear:left;
height:0;
margin:0;
padding:0;
}
#membercardcolumnleft
{
float: left;
position: relative;
}
#membercardcolumnright
{
margin-left: 226px;
}
.membercard p
{
margin: 5px;
}
/************************************************************************
*
* Compact Event list
*
************************************************************************/
/* define event grid view columns */
/* todo: use or remove */
.eventlistdate
{
padding-right: 4px;
}
.eventlisticon
{
text-align: center;
}
.eventlisttime
{
text-align: center;
width: 95px;
}
.eventlistevent
{
font-weight: bold;
}
.eventlistlocation
{
/* no styles needed at this time */
}
.eventlist td
{
padding-bottom: 4px;
}
/*
.eventlist, .eventlist td, .eventlist tr
{
border-style:none;
}
*/
/************************************************************************
*
* Rollover buttons
*
************************************************************************/
.buttonsmall, .buttonsmall-ovr
{
background: url(images/background_button_small.gif) repeat-x;
border: none;
color: #FFFFFF;
height: 22px;
font-weight: normal;
font-size: 9px;
padding-bottom: 9px;
padding-left: 3px;
padding-right: 3px;
cursor: pointer;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.buttonsmall-ovr
{
text-decoration: underline;
background: url(images/background_button_small-ovr.gif) repeat-x;
}
/************************************************************************
*
* Page specific
*
************************************************************************/
/* even dowload button */
.downloadevent img
{
margin-right: 5px;
vertical-align: middle;
border: none;
}
/* Header on view details type pages */
.itemdetails
{
font-size: 1.3em;
}
/************************************************************************
*
* Photo selection controls
*
************************************************************************/
#popupbody
{
font-family: Tahoma, Verdana, Helvetica, Helvetica-Narrow, sans-serif;
margin: 0px;
background: #FED36B;
font-size: 0.7em;
}
#popupinner
{
border: 1px solid #DBDB79;
margin: 5px;
background: #FEFFAB;
padding-left: 15px;
padding-right: 15px;
padding-top: 10px;
padding-bottom: 10px;
}
#popupbody h2
{
font-weight: bold;
margin: 0px;
padding: 1px 0px 5px 5px;
display: block;
}
.selected, .unselected
{
width: 80px;
height: 100px;
text-align: center;
padding: 2px 2px 2px 2px;
}
.unselected
{
background-color: transparent;
border: solid 1px #FEFFAB;
}
.selected
{
background: #FED36B;
border: solid 1px #DBDB79;
}
.scrollablelist
{
overflow: auto;
height: 230px;
width: 460px;
border: solid 1px #DBDB79;
}
.scrollablelist2
{
overflow: auto;
height: 230px;
width: 210px;
border: solid 1px #DBDB79;
}
.scrolledtable
{
}
.selectablephoto
{
background: #FEFFC8 url(images/background_thumbnail.jpg) repeat-x center;
border: 1px solid #E8DCA3;
padding: 2px;
}
.contextbuttons
{
margin: 5px 3px 5px 3px;
}
/************************************************************************
*
* Forms
*
************************************************************************/
/* label column */
.formlabel
{
width:120px;
vertical-align: top;
}
/* value column */
.formvalue
{
vertical-align: top;
}
.txtfield
{
width:300px;
}
.txtblock
{
width:300px;
}
/************************************************************************
*
* Formatting common to Forum pages
*
*************************************/
.thread
{
padding-top: 5px;
}
.thread h3
{
font-size: 1em;
font-weight: bold;
margin: 0px;
padding: 3px 1px 3px 1px;
display: block;
}
.forumrow
{
background-color: #fef8a9;
}
.sectionrow td
{
border-bottom: solid 1px #feed9e;
padding-top: 10px;
font-size: 110%;
}
.forumrow .forumleftcell
{
border-left: solid 1px #feed9e;
}
/* the cells where edit\reply\quote are */
.threadcontrols
{
border-bottom: solid 1px #CCCCCC;
padding: 5px;
}
.topicdesc
{
margin: 2px 2px 6px 2px;
}
.msgbody
{
max-width: 560px;
width: 560px;
overflow: auto;
padding: 10px;
border: solid 1px #DDDDDD;
margin-top: 5px;
background-color: #FFFFFF;
}
.threadlistitem
{
color: #666666;
}
.threadlistlink
{
font-size: 105%;
font-weight: bold;
}
.stickygrid caption
{
color: Teal;
padding:4px;
font-weight:bold;
border-top: solid 1px #FFFFFF;
border-bottom: solid 1px #808080;
border-left: solid 1px #FFFFFF;
border-right: solid 1px #808080;
text-align:left;
margin-bottom: 2px;
}
.forumuser h3
{
font-weight:bold;
font-size:1em;
}
/* the rest is just to try to make Firefox and IE look similar */
.normalgrid, .stickygrid {
border-width: 1px 1px 1px 1px;
border-spacing: 0px;
border-style: solid solid solid solid;
border-color: white gray gray white;
border-collapse: collapse;
}
.normalgrid th, .stickygrid th {
border-width: 1px 1px 1px 1px;
padding: 2px 2px 2px 3px;
border-style: solid solid solid solid;
border-color: white white white white;
-moz-border-radius: 0px 0px 0px 0px;
}
.normalgrid td, .stickygrid td {
border-width: 1px 1px 1px 1px;
padding: 2px 2px 2px 3px;
border-style: solid solid solid solid;
border-color: white white white white;
-moz-border-radius: 0px 0px 0px 0px;
}
/************************************************************************
*
* Formatting common to poll pages
*
*************************************/
#pollControl
{
border: 1px solid #BBBBBB;
padding: 15px;
margin-bottom: 10px;
background: #EEEEEE url(images/background_columnleft.gif) repeat-y;
vertical-align: top;
float: left;
width: 240px;
}
.pollcontrols
{
border-bottom: solid 1px #CCCCCC;
padding: 5px;
}