CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting
Free 3 Months



Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 7/11/2005 1:56:05 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 30 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
manjushab
Asp.Net User
Alignment of control when Cssclass is set7/11/2005 1:56:05 PM

0/0

Hi,


I have composite cotrol consist of textbox, button and lable.
when I assign Cssclass property to each child control ,alignment is lost .
when control is rendered top of textbox,button and lable is different.

I IE - button and label top is less than textbox and
in NN - button and label top is greater then textbox.

in both breowsers all three controls are not rendered in one line.


.Button
{
width: 22px;
cursor: hand;
color: blue;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
height: 20px;
background-color: #efefef;
}

.TextField
{
font-size: 10px;
font-family: "verdana";
}

.label
{
font-size: 10px;
vertical-align: top;
color: blue;
font-family: "verdana";
                VERTICAL-ALIGN:top;
height        :20px;
}      
thanks in advance.

Problem resolved - I just added  attribute  font-size: 10px; in button cssclass and it worked.
billrob458
Asp.Net User
Re: Alignment of control when Cssclass is set7/12/2005 10:13:08 PM

0/0

There probably is a solution for this using CSS, but just to get your rolling, in your composite control you could just write out a containing table with only 1 row and place each child control in its own cell in that one row.

You will have complete control over its alignment.

bill
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Programming Data-driven Web Applications with ASP.NET Authors: Don Wolthuis, Donny Mack, Doug Seven, Pages: 704, Published: 2002
Beginning ASP.NET 3.5: In C# and VB Authors: Imar Spaanjaars, Pages: 734, Published: 2008
ASP.NET Website Programming: Problem - Design - Solution Authors: Marco Bellinaso, Kevin Hoffman, Pages: 576, Published: 2002
Beginning ASP.NET 2.0 AJAX: Written and Tested with the Final 1.0 Release Version of ASP.NET AJAX for ASP:NET 2.0 Authors: Wallace B. McClure, Paul Glavich, Scott Cate, Steve C. Orr, Craig Shoemaker, Steven A. Smith, Jim Zimmerman, Pages: 344, Published: 2007
Pro ASP.NET 2.0 in VB 2005: From Professional to Expert Authors: Laurence Moroney, Matthew MacDonald, Pages: 1253, Published: 2006
Foundations of ASP.NET AJAX Authors: Robin Pars, Laurence Moroney, John Grieb, Pages: 268, Published: 2007
ASP.NET Data Web Controls Kick Start: Kick Start Authors: Scott Mitchell, Pages: 432, Published: 2003
Pro ASP.NET 3.5 in C# 2008 Authors: Matthew MacDonald, Mario Szpuszta, Pages: 1498, Published: 2007
ASP.NET Unleashed: unleashed Authors: Stephen Walther, Pages: 1488, Published: 2003
ASP.NET 2.0 Cookbook Authors: Michael A. Kittel, Geoffrey T. Leblond, Pages: 989, Published: 2005

Web:
Set alignment of text in caption of Gridview using stylesheet ... Set alignment of text in caption of Gridview using stylesheet/skinfile ... I have to set the CssClass for each and every gridview control in my application. ...
TheMSsForum.com >> Asp >> Literal control doesn't have CssClass ... guys know why is that, why I can't set the CSS class directly to this control? If can't do this, I have to go with Label control only for this ...
Scott’s Blog » ASP.NET Calendar Customization CssClass—when set to the name of a class in a linked CSS file, it applies the attributes of the class to the entire Calendar control. ...
How do i format a detailsview control using a css class? : ASP.NET ... The aspects of the detailsview i'd like to control: - font color, size, & family - spacing within the cell - alignment of text ...
Beginning CSS Class Description Control first-line indentation, horizontal and vertical alignment, word and letter ... Set foreground and background colors for elements, and control many ...
Column Chart Component - Using Castle Project Jul 22, 2007 ... You can control the a ColumnChartComponent using the ChartProperties parameter. ... CSS Class, Description, Typical Attributes To Set ...
Gridview Checkbox Alignment Problem - .NET ASP Matt Berseth: More Sample AjaxControlToolkit TabContainer Themes ... Sep 26, 2007 ... link to the CSS file and set the CssClass of the TabContainer control to ... There appears to be a small issue with the alignment of the ...
Form Master for DotNetNuke 4 - Common Fields Not Set; Left; Center; Right. Label Class: The CSS class applied to the Label ... Example: 250; Controls Align: The alignment of the input control in the ...
EggHeadCafe - .NET Developer Portal of Choice Alignment of control when Cssclass is set 11-Jul-05 Go. Pl Help how to count pdf pages vb6 11-Jul-05 Go. How to filter old messages automatically 11-Jul-05 ...




Search This Site:










how to store a value in a hidden field with a return value from a javascript function

webpartzone control disappear after i click close button on previous debug

sharepoint discussion board email subscription

could not select catalogparts in customize catalogzone

gridview won't display in web part

server error message

<allow users="*" verbs="entersharedscope"/> in web.config file

prevent a particular role from using the close verb in a web part

creating new users

dynamically adding webpart properties

setting profile properties for others.

need a sharepoint web part.

pm box for web part?

home page with out toolbar,address bar, menubar,title bar. status bar

where do web part properties get stored?

newbie here with server and schema issues

exception when exporting web parts

webpart with grid with select enabled and problem with postback

isclosed property (hope that somebody got answer to it)

how to save a file from memory to user?

web parts in wss 3 help plsz

implementation of refresh verb...

how to get the system tools character map

any way to expire web parts after a certain time period?

implementing a profile provider

load webparts new user setup

developing portal ui architectures with web parts

loading web parts in order

creating profiles for users logging into my site (organiser)

catalogzone not displayed

  Privacy | Contact Us
All Times Are GMT