473,385 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Header Labels

Mel
I created a header that adjusts with the size of the browser windows.
How do I place labels in the header section so they also maintain
their position when the window is resized? One of the labels is
constant but the rest will be entered programmatically, for example,
the users name, their company, city, state and zip.
My example code:
<body>
<form id="form1" runat="server">

<div style="z-index: 103; margin: 0px; background:
url(logo_ucd.gif) black fixed no-repeat center center; font-family:
Verdana; height: 95px; valign: top; overflow: visible;" >

<div id="Content" style="z-index: 100; left: 13px; width:
1017px; position: absolute;
top: 114px; height: 695px; background-position: center
center; background-attachment: fixed; background-image:
url(logo_firestone_shield_WM.gif); background-repeat: no-repeat;">

<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="z-index: 102; position: absolute; top: 100%;
valign: bottom; margin: 0px; width: 100%; background-color: red;
overflow: visible; font-family: Verdana;">
</div>
</form>
</body>

Jun 25 '07 #1
5 2366
Is there any specific reason why you are using absolute positioning? With
flow layout and relative positioning everything will resize automatically.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mel" <ML********@gmail.comwrote in message
news:11*********************@u2g2000hsc.googlegrou ps.com...
>I created a header that adjusts with the size of the browser windows.
How do I place labels in the header section so they also maintain
their position when the window is resized? One of the labels is
constant but the rest will be entered programmatically, for example,
the users name, their company, city, state and zip.
My example code:
<body>
<form id="form1" runat="server">

<div style="z-index: 103; margin: 0px; background:
url(logo_ucd.gif) black fixed no-repeat center center; font-family:
Verdana; height: 95px; valign: top; overflow: visible;" >

<div id="Content" style="z-index: 100; left: 13px; width:
1017px; position: absolute;
top: 114px; height: 695px; background-position: center
center; background-attachment: fixed; background-image:
url(logo_firestone_shield_WM.gif); background-repeat: no-repeat;">

<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="z-index: 102; position: absolute; top: 100%;
valign: bottom; margin: 0px; width: 100%; background-color: red;
overflow: visible; font-family: Verdana;">
</div>
</form>
</body>

Jun 26 '07 #2
Mel
On Jun 26, 2:22 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
Is there any specific reason why you are using absolute positioning? With
flow layout and relative positioning everything will resize automatically.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

"Mel" <MLights...@gmail.comwrote in message

news:11*********************@u2g2000hsc.googlegrou ps.com...
I created a header that adjusts with the size of the browser windows.
How do I place labels in the header section so they also maintain
their position when the window is resized? One of the labels is
constant but the rest will be entered programmatically, for example,
the users name, their company, city, state and zip.
My example code:
<body>
<form id="form1" runat="server">
<div style="z-index: 103; margin: 0px; background:
url(logo_ucd.gif) black fixed no-repeat center center; font-family:
Verdana; height: 95px; valign: top; overflow: visible;" >
<div id="Content" style="z-index: 100; left: 13px; width:
1017px; position: absolute;
top: 114px; height: 695px; background-position: center
center; background-attachment: fixed; background-image:
url(logo_firestone_shield_WM.gif); background-repeat: no-repeat;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="z-index: 102; position: absolute; top: 100%;
valign: bottom; margin: 0px; width: 100%; background-color: red;
overflow: visible; font-family: Verdana;">
</div>
</form>
</body>- Hide quoted text -

- Show quoted text -
Absolute must be the Visual Studio default. Even if I change it to
relative and drag a label on a Header <DIVsection the label does not
appear.

Jun 26 '07 #3
Are you with 1.1? It defaults to GridLayout. If so, just get rid of the
MS_POSITIONING="GridLayout" attribute in the <bodyelement

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mel" <ML********@gmail.comwrote in message
news:11**********************@q75g2000hsh.googlegr oups.com...
On Jun 26, 2:22 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
>Is there any specific reason why you are using absolute positioning? With
flow layout and relative positioning everything will resize
automatically.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP
[ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

"Mel" <MLights...@gmail.comwrote in message

news:11*********************@u2g2000hsc.googlegro ups.com...
>I created a header that adjusts with the size of the browser windows.
How do I place labels in the header section so they also maintain
their position when the window is resized? One of the labels is
constant but the rest will be entered programmatically, for example,
the users name, their company, city, state and zip.
My example code:
<body>
<form id="form1" runat="server">
<div style="z-index: 103; margin: 0px; background:
url(logo_ucd.gif) black fixed no-repeat center center; font-family:
Verdana; height: 95px; valign: top; overflow: visible;" >
<div id="Content" style="z-index: 100; left: 13px; width:
1017px; position: absolute;
top: 114px; height: 695px; background-position: center
center; background-attachment: fixed; background-image:
url(logo_firestone_shield_WM.gif); background-repeat: no-repeat;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="z-index: 102; position: absolute; top: 100%;
valign: bottom; margin: 0px; width: 100%; background-color: red;
overflow: visible; font-family: Verdana;">
</div>
</form>
</body>- Hide quoted text -

- Show quoted text -

Absolute must be the Visual Studio default. Even if I change it to
relative and drag a label on a Header <DIVsection the label does not
appear.

Jun 26 '07 #4
Mel
On Jun 26, 7:48 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
Are you with 1.1? It defaults to GridLayout. If so, just get rid of the
MS_POSITIONING="GridLayout" attribute in the <bodyelement

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

"Mel" <MLights...@gmail.comwrote in message

news:11**********************@q75g2000hsh.googlegr oups.com...
On Jun 26, 2:22 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
Is there any specific reason why you are using absolute positioning? With
flow layout and relative positioning everything will resize
automatically.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP
[ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net
"Mel" <MLights...@gmail.comwrote in message
>news:11*********************@u2g2000hsc.googlegro ups.com...
I created a header that adjusts with the size of the browser windows.
How do I place labels in the header section so they also maintain
their position when the window is resized? One of the labels is
constant but the rest will be entered programmatically, for example,
the users name, their company, city, state and zip.
My example code:
<body>
<form id="form1" runat="server">
<div style="z-index: 103; margin: 0px; background:
url(logo_ucd.gif) black fixed no-repeat center center; font-family:
Verdana; height: 95px; valign: top; overflow: visible;" >
<div id="Content" style="z-index: 100; left: 13px; width:
1017px; position: absolute;
top: 114px; height: 695px; background-position: center
center; background-attachment: fixed; background-image:
url(logo_firestone_shield_WM.gif); background-repeat: no-repeat;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="z-index: 102; position: absolute; top: 100%;
valign: bottom; margin: 0px; width: 100%; background-color: red;
overflow: visible; font-family: Verdana;">
</div>
</form>
</body>- Hide quoted text -
- Show quoted text -
Absolute must be the Visual Studio default. Even if I change it to
relative and drag a label on a Header <DIVsection the label does not
appear.- Hide quoted text -

- Show quoted text
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional
Microsoft Visual Basic 2005
Microsoft Visual Web Developer 2005
Jun 26 '07 #5
I do everything in layout in the HTML view and don't have much experience
with the designer. You can always switch to HTML and insert controls there.
This can give you a better idea what's going on.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Mel" <ML********@gmail.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
On Jun 26, 7:48 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
>Are you with 1.1? It defaults to GridLayout. If so, just get rid of the
MS_POSITIONING="GridLayout" attribute in the <bodyelement

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP
[ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net

"Mel" <MLights...@gmail.comwrote in message

news:11**********************@q75g2000hsh.googleg roups.com...
On Jun 26, 2:22 am, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
Is there any specific reason why you are using absolute positioning?
With
flow layout and relative positioning everything will resize
automatically.
>--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP
[ASP.NET]http://msmvps.com/blogs/egoldinhttp://usableasp.net
>"Mel" <MLights...@gmail.comwrote in message
>>news:11*********************@u2g2000hsc.googlegr oups.com...
>I created a header that adjusts with the size of the browser windows.
How do I place labels in the header section so they also maintain
their position when the window is resized? One of the labels is
constant but the rest will be entered programmatically, for example,
the users name, their company, city, state and zip.
My example code:
<body>
<form id="form1" runat="server">
<div style="z-index: 103; margin: 0px; background:
url(logo_ucd.gif) black fixed no-repeat center center; font-family:
Verdana; height: 95px; valign: top; overflow: visible;" >
<div id="Content" style="z-index: 100; left: 13px; width:
1017px; position: absolute;
top: 114px; height: 695px; background-position: center
center; background-attachment: fixed; background-image:
url(logo_firestone_shield_WM.gif); background-repeat: no-repeat;">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1"
runat="server">
</asp:ContentPlaceHolder>
</div>
</div>
<div style="z-index: 102; position: absolute; top: 100%;
valign: bottom; margin: 0px; width: 100%; background-color: red;
overflow: visible; font-family: Verdana;">
</div>
</form>
</body>- Hide quoted text -
>- Show quoted text -
Absolute must be the Visual Studio default. Even if I change it to
relative and drag a label on a Header <DIVsection the label does not
appear.- Hide quoted text -

- Show quoted text

Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727

Installed Edition: Professional
Microsoft Visual Basic 2005
Microsoft Visual Web Developer 2005


Jun 26 '07 #6

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

Similar topics

3
by: Grim Reaper | last post by:
I know this is probably an easy question, but I could not find/figure it out. Basically, I am printing mailing labels with a "Sorting/Grouping" section that groups the label types together....
6
by: Chuck | last post by:
I have a report with three columns, accross then down, and two groups. Currently the group headers are only one column wide and appear in the left hand column. How can I make the group header be...
2
by: Ross Hamilton | last post by:
Can anyone help me with this small problem. I have a report that is divided into 3 Columns using the page setup, It displays the report fields in 3 separate columns (Desc & Pg Num) but it only...
1
by: tesc | last post by:
I'm sure this is pretty simple but I'm having a hard time with it. I have a report that has multiple columns and have to change some of the titles in the page header. As a result, the titles don't...
0
by: cedoucette | last post by:
I just wrote code to support sortable columns in a datagrid. It seems to work fine; but, it doesn't look right. The problem is that I have a generic style for links and a different style for the...
0
by: Arnold | last post by:
Hi Everyone; In a report, I've essentially recreated a paper sheet by adding various labels--name, date, problem, year, Progress Notes, etc.--and horizontal lines (people have traditionally...
0
by: rech340 | last post by:
Hi, I created labels using the label wizard. I then added a group header for a FN/LN field. I moved the following text box to the group header: =Trim( & ", " & ) Remaining in the detail...
7
by: JH001A | last post by:
I have a report of selected employees printed using a label report four columns wide. The label report width is 1.5 inches. How can I merge a report header ahead of the labels? Thank you for any...
5
by: cmartin1986 | last post by:
Hi Guys, My problem today is how to change the labels in a form header when the user selects a different tab. I want it in the header instead of the tab control box because im using this is a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.