J'ai tout essayer, ce que je connaissais et par essai/erreur, et rien ne semble fonctionner, mon texte est "justified" mais il est toujours centré verticalement, j'essai de mettre l'alignement vertical en haut et j'ai essayer "vertical-align : top", "vertical-align : top-text", etc.
Rien ne semble fonctionner, où dois-je mettre mon style? Table, Cell, Label?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 <table width="900" border="0" style=" border-color:White; vertical-align: top; "> <tr style="width:900px; height:300px"> <td rowspan="2" style="width:700px; vertical-align:top; border:0"> <asp:FormView ID="FormView1" runat="server" CellPadding="4" DataSourceID="ads_ArtistSource" style="font-weight: 500; font-size: small; color: #FFFFFF; background-color:#466E95; text-indent: 5px; font-style: normal; font-family: palatino linotype, monospace; text-align: justify; height:300px; padding-right: 5px; padding-left: 5px; margin-left: 5px; margin-right: 5px; text-align:justify "> <ItemTemplate> <asp:Label ID="lblDescWelcome" runat="server" Text='<%# Bind("BIO_ARTIST") %>'></asp:Label><br /> </ItemTemplate> </asp:FormView> </td> <td style="border-bottom-color:White; width:200px; height:300px; background-color:#23344B; color:#FFFFFF; vertical-align:top; font-size:smaller; text-align:left; font-variant: normal; padding-right: 5px; padding-left: 5px; margin-left: 5px; margin-right: 5px; font-style: normal; font-family: palatino linotype, monospace; "> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ads_NewsSource"> <HeaderTemplate> <asp:Label ID="Label1" runat="server" Text=" .:" ForeColor="#C3DBF3"></asp:Label> <asp:Label ID="lblLatestNewsTitle" runat="server" Text="Latest News" Font-Bold="true"></asp:Label> <br /> <hr style="color:#8FBCE8" /> </HeaderTemplate> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text=".:" ForeColor="#C3DBF3"></asp:Label> <asp:Label runat="server" Text='<%# Eval("DATE_NEWS") %>'></asp:Label> - <asp:Label runat="server" Text='<%# Eval("TITLE_NEWS") %>'></asp:Label> </ItemTemplate> <SeparatorTemplate> <hr style="color:#466E95" /> </SeparatorTemplate> <FooterTemplate> <hr style="color:#466E95" /> </FooterTemplate> </asp:Repeater> </td> </tr> </table>
Merci à l'avance,
TCW
Partager