Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

BulletedList and width

1 view
Skip to first unread message

David C

unread,
Apr 22, 2008, 2:27:50 PM4/22/08
to
I have a BulletedList control that is bound to a SQL table and it displays
fine. However, when I set the width property to 450px the bullets
disappear. Does anyone know why? Thanks. My sample control is below.

David
<div id="tasklist" class="Show">
<asp:BulletedList ID="BLstStageTasks" runat="server"
DataSourceID="SqlRepairStageTasks"
DataTextField="StageTask" DataValueField="StageNumber">
</asp:BulletedList>
<asp:SqlDataSource ID="SqlRepairStageTasks" runat="server"
ConnectionString="<%$ ConnectionStrings:MConnectionString %>"
SelectCommand="SELECT [StageNumber], [StageTask] FROM
[RepairStageTasks] WHERE ([StageNumber] = @StageNumber) ORDER BY
[TaskSequence]">
<SelectParameters>
<asp:ControlParameter ControlID="txtStagePicked"
Name="StageNumber" PropertyName="Text" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
</div>


wis...@googlemail.com

unread,
Apr 23, 2008, 2:48:37 PM4/23/08
to
Hi David,

Can you post your CSS code? Without it, it's kind of hard to figure
out what's going wrong.

===========
Regards,
Steve
www.stkomp.com

David C

unread,
Apr 23, 2008, 3:50:31 PM4/23/08
to
Below is CSS

body
{
background-color: #CCCCCC;
font-size: 10pt;
font-family: Arial;
}

.Show { visibility: visible; display: inline; }

.Hide { visibility: hidden; display: none; }
.ClsForm { left: 400px; position: absolute; top: 120px; }
.LabelBold { font-weight: bold; font-size: 10pt; color: black; height: 12pt;
vertical-align: bottom; padding-top: 5px; }
.PropForm { font-family: Arial; font-size: 10pt; color: Black; }
.ReadText { font-family: Arial; font-size: 10pt; color:Maroon; }
.gvHead { text-align: center;}
<wis...@googlemail.com> wrote in message
news:df1442ed-b4d3-4290...@w7g2000hsa.googlegroups.com...

wis...@googlemail.com

unread,
Apr 24, 2008, 2:29:21 AM4/24/08
to
Hi David,

Instead of setting the Width property, try setting both width and left
padding. Something like Style="width:450px;padding-left:20px". For an
explanation, you can go to http://www.quirksmode.org/bugreports/archives/2004/11/width_on_olul.html.

=============
Regards,
Steve
www.stkomp.com

On Apr 23, 9:50 pm, "David C" <dlch...@lifetimeinc.com> wrote:
> Below is CSS
>
> body
> {
> background-color: #CCCCCC;
> font-size: 10pt;
> font-family: Arial;
>
> }
>
> .Show { visibility: visible; display: inline; }
>
> .Hide { visibility: hidden; display: none; }
> .ClsForm { left: 400px; position: absolute; top: 120px; }
> .LabelBold { font-weight: bold; font-size: 10pt; color: black; height: 12pt;
> vertical-align: bottom; padding-top: 5px; }
> .PropForm { font-family: Arial; font-size: 10pt; color: Black; }
> .ReadText { font-family: Arial; font-size: 10pt; color:Maroon; }

> .gvHead { text-align: center;}<wisc...@googlemail.com> wrote in message

0 new messages