473,789 Members | 2,419 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vertical aligning problems again

ASP.NET 2.0

This picture is based on the markup you see in this message.:
http://home.online.no/~au-holme/pub/768/vetical.JPG

The problem is that I want the text vertically centered and also I want the
space between those 2 rows of text to be narrower.... I don't know how to go
about fix that... Hope maybe you have some suggestions for me

Here is the code:
<div style=" background-color:#CCDDEE; position:absolu te; width:200px;
height:60px; left:210px; border:solid 5px white; display:block;
vertical-align:middle; line-height:20px;">
<asp:Label ID="lblFullname " runat="server" CssClass="name"
Width="212px"></asp:Label>
<asp:Label ID="lblTitle" runat="server" CssClass="label "
Width="212px"></asp:Label>
</div>
May 17 '07 #1
1 2712
On May 17, 11:25 pm, "Jeff" <it_consulta... @hotmail.com.NO SPAMwrote:
ASP.NET 2.0

This picture is based on the markup you see in this message.:http://home.online.no/~au-holme/pub/768/vetical.JPG

The problem is that I want the text vertically centered and also I want the
space between those 2 rows of text to be narrower.... I don't know how to go
about fix that... Hope maybe you have some suggestions for me

Here is the code:
<div style=" background-color:#CCDDEE; position:absolu te; width:200px;
height:60px; left:210px; border:solid 5px white; display:block;
vertical-align:middle; line-height:20px;">
<asp:Label ID="lblFullname " runat="server" CssClass="name"
Width="212px"></asp:Label>
<asp:Label ID="lblTitle" runat="server" CssClass="label "
Width="212px"></asp:Label>
</div>
Add to the name class padding-bottom and/or to the label class padding-
top rule

May 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6181
by: Felipe Gasper | last post by:
I'm trying to make some "sub-cells" in an HTML table and to control their positioning and content presentation via CSS. In the table at the following URL: https://fshn3152.foods.uiuc.edu/~fgasper/erf.html what I'm immediately trying to do is vertically position the text and checkboxes in all four "Statement Date" sub-cells (created with <span> elements).
15
15963
by: A.Translator | last post by:
From what I read, aligning images vertically in a div is not easy. It proofed too difficult for me: I tried to align the "control buttons" on the right hand side of the main nav bar by vertically alignign the container div (#playPanel)to "middle" - but it is no good. Can someone please point me in the right direction? I would be very grateful.
6
4354
by: ti33m | last post by:
Hi All, I'd like to include a datasheet on my user interface but since I'm starting to run tight on space, I'd like to have a vertically-oriented datasheet (column 1 has labels, column 2 has values), i.e. a transposed datasheet or datasheet in column format. A vertical datasheet will look cleaner, eliminate the need to scroll across (for miles) and lay out bit more efficiently since I have some long labels. It seems like Access only...
2
1651
by: tradmusic.com | last post by:
Sorry to re-post, but my original post didn't seem to appear. Here it is again: I am experimenting with a roll-over but am struggling to get the text to align, vertically, in the middle: #sidebar a:link, #sidebar a:visited { border: 1px solid #7A95CA; display: block; height: 30px;
0
1873
by: dudethat | last post by:
Hello, im brand new to forums and as you will see to css! The problem im having here is the text i want in the cell (class hd) refuses to align to the top in firefox. Ive tried placing it straight into the first class hd cell without the table tags or tbody tags with no luck. If i add more text than there is now it pushes the link table below it out of sight. I may not have placed enough of the code here to see exactly what's happening so you...
5
4826
by: Markus Ernst | last post by:
Hello This is a test example: http://www.markusernst.ch/anthracite/ http://www.markusernst.ch/anthracite/living_divani.html After googling and experimenting for several hours, I ended up doing this demo with tables. The main problems are the vertical centering of the info area, and of the text inside the squares.
4
3296
by: O11Y | last post by:
Hello, I've read numerous posts & guides on this subject but i'm still having problems. I'm writing some HTML for the company intranet and all our browsers are currently (you guessed it) IE6. In most of the guides that I've read you can "fix" this problem in IE6 by nesting a series of divs inside each other and fiddling the margins. However this only seems to work when you know the size of the content you're putting in. It also seems to...
3
2391
by: howa | last post by:
Hello, In Firefox or other browers, vertical scrollbar might not exist and this lead to the page aligning problem (Inconsistency), i.e. when you just from one page (w/scrollbar) to another page with ((w/o scrollbar). These kind of inconsistency is not what we want. Some methods are suggested, e.g. hight:101% or Mozilla styles hack...
40
5505
by: maya | last post by:
hi, how do I get text to vertical-align inside a div? http://www.mayacove.com/misc/home.html vertical-align should work, according to this: http://htmlhelp.com/reference/css/text/vertical-align.html
0
9663
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10404
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9016
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7525
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6761
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5548
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2906
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.