newbie: <div> trouble

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hey

I'm trying to create a asp.net 2.0 web site. A while ago I created the
registration page using table hacks... but now I want to reprogram that
page. I want to avoid using table hacks... I believe using div is better
than table hacks....

Okay, here is the problem:
http://home.online.no/~au-holme/pub/564/divtrouble.JPG
That picture is divided into 2 groups, the upper part see the registrations
fields based on div and css.. the 3 last fields is placed tidy using a table
hack...

PS: The colors are just to illustrate what area the controls are covering,
in other words the colors are used as debug info

As you see the div approach doesn't look good... so I was wondering if some
of you have some tips about how I can make the div approach look as tidy as
the table hack..

******* registration.aspx: **************
<div style="background-color:Red;">
<div><asp:Label ID="Label1" runat="server" CssClass="tyu"
Text="UserName"></asp:Label><asp:TextBox ID="TextBox1" CssClass="trr"
runat="server"></asp:TextBox></div>
<div style="background-color:Green;"><asp:Label ID="Label2" runat="server"
CssClass="tyu" Text="Password"></asp:Label><asp:TextBox ID="TextBox2"
CssClass="trr" runat="server"></asp:TextBox></div>
<div><asp:Label ID="Label3" CssClass="tyu" runat="server" Text="Confirm
Password"></asp:Label><asp:TextBox ID="TextBox3" CssClass="trr"
runat="server"></asp:TextBox></div>
</div>

******* default.css: **************
..trr {
background-color:#CCBB00;
float:right; }

..tyu {
width:8em;
background-color:Orange;}

any suggestions?

Jeff


.



Relevant Pages

  • Re: newbie:
    trouble
    ... Jeff wrote: ... A while ago I created the registration page using table hacks... ... That picture is divided into 2 groups, the upper part see the registrations fields based on div and css.. ... the 3 last fields is placed tidy using a table hack... ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Then came Bronson...
    ... SteveT wrote: ... I read all of the other hacks but didn't find any that ... to reprogram the 30 second skip. ... Odinn - still trying to get MRV working ...
    (rec.motorcycles.harley)