473,479 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Anchoring table to top of page

20 New Member
Hi,

I'm trying to figure out why my top table is leaving a gop between it and the top of the screen.

Expand|Select|Wrap|Line Numbers
  1. </head>
  2.  
  3.  
  4.  
  5. <body onload="MM_preloadImages('images/bttn_hover.gif','images/bttn-hover.jpg')">
  6.  
  7. <form action="https://www.fooshenergytrial.com/orderpage.php" method="post" name="frmSignUp" id="frmSignUp">
  8.  
  9. <table align="center"><td><table  align="center" vspace="0" width="972" cellspacing="0" cellpadding="0">
  10.  
  11.   <tr>
  12.  
  13.     <td scope="row" valign="top"><img src="images/topBanner.gif" /></td>
  14.  
  15.   </tr>
  16.  
  17.   <tr>
  18.  
  19.   <td scope="row"><img src="images/header.gif" /></td>
  20.  
  21.   </tr>
  22.  
  23.  
  24.  
U have my vspace set to 0, but that doesn't seem to be doing it. I looked through the rest of the commands suggested by dreamweaver and I can't see any that would apply.

I don't understand why it won't allow me to use valign"top", like I do with the following image, for controlling the top of the table.

Any advice would be appreciated. Slowly but surely I'm starting to understand the structure of all this (trying to understand the code that was written for me on a site I paid to get designed).

Thanks for your help.

Andrew
Nov 18 '09 #1
4 2167
Dormilich
8,658 Recognized Expert Moderator Expert
check the paddings and margins of the elements before (there arfe also browser defaults). and using tables for image layout is outdated for long.
Nov 19 '09 #2
adweaver
20 New Member
thanks Dorm. I'm still fighting with it. trying to adjust paddings and stuff.

Table layout works well for this application. Site is pretty simple and the entire thing is created as images in Illustrator.

It was built for me, so I'm trying to stay within the framework I was given. Certainly learning a lot along the way.

Thanks for your help.

Andrew
Nov 19 '09 #3
drhowarddrfine
7,435 Recognized Expert Expert
How big a gap is it? About 10px? Which browser?

Add this to the body tag and see if it's the solution:
<body style="margin:0" ...
Nov 19 '09 #4
adweaver
20 New Member
Thanks fort he suggestion. I actually had 2 similar pages, and one was flush with the top (the other, which I was fighting with, I had made other changes to that I didn't want to lose).

In the end, I started from scratch and built a page that was chunks of each. Even copy and pasting all the relevant from the one that worked wouldn't fix it. Still not sure what the problem was, but I have moved onto my next problem (for another post).

Thanks for the help.
Nov 20 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

10
26845
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
1
1427
by: Brian Conway | last post by:
I have a webform that I have a datagrid on that I want a button at the bottom of the grid to maintain its position with the datagrid, if the grid grows large then button needs to move down with it,...
3
12224
by: Mad Joe | last post by:
Hi! I have a window form that contains 4 elements (2x2) on one panel. Those 4 elements are GroupBoxes of the exact same size, sorted like this: groupBox1 groupBox2 groupBox3 groupBox4 ...
1
2172
by: Beowulf | last post by:
I have a report laid out in Design View as shown at the end of this message. I have code that performs the following steps: 1. In main report's Report_Open(), DELETE any old rows in tblTOC for...
0
1304
by: daveryan78 | last post by:
Hi all, I've been getting a strange problem with anchoring on my forms. I have a form where I put on a tabControl. I set it's anchoring to Top, Bottom, Left, Right. I put a number of tabPages on...
3
5139
by: Greg | last post by:
This works properly: 1. Create a new Form and set it's size to 229, 474. 2. Drag a Panel to the form and set the following properties: Size = 216, 438 Location = 3,1 Anchor = Top, Bottom...
3
1679
by: Steve | last post by:
I have two group boxes containing labels and textboxes that are next too each other. I want the group boxes and labels and textboxes to remain portionally the same as the form is resized. I've...
3
10232
by: marfi95 | last post by:
My application consists of basically a treeview on the left side, along with a panel control that takes up the right side. When nodes are clicked on the left, the data on the right side of the...
1
14530
by: sklett | last post by:
I've read several articles/blogs/threads about anchoring/docking child controls in a FlowLayoutPanel. It sounds like it *should* work, but I can't get it to work for the life of me. Jon Skeet: ...
0
7027
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,...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
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...
0
5312
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,...
1
4757
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...
0
4463
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...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.