473,396 Members | 1,929 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,396 software developers and data experts.

HTML - Alignment problem

beacon
579 512MB
I'm having trouble with a personal web page that I'm designing for work. I'm not well versed in HTML and could use some assistance.

Currently, when I open the browser, the table in the head at the top of the screen doesn't stay flush with the top of the screen. I've tried changing the alignment, but have had no luck.

I'm not using a stylesheet and am wondering if maybe that's the problem.

Also, below the head, I have another table that has links on one side and information on the other. I have a good size gap on the right side of the page that I would like to fill by moving the info side of the table over to the right some and then making the links side of the table a little bigger by moving it to the right.

Here's an idea of what I'm working with:

-----------------------------
| Links | Info | GAP |
-----------------------------

And here's my code:
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4.  
  5. <style>
  6. <!--
  7.  
  8. .mouseBeOffMe {
  9. border-top:    5px  solid #d3d3d3; 
  10. border-bottom: 5px  solid #d3d3d3; 
  11. border-left:   5px  solid #d3d3d3;
  12. border-right:  5px  solid #d3d3d3; 
  13. }
  14.  
  15. .mouseBeOnMe {
  16. border-top:    3px  solid #d3d3d3;
  17. border-bottom: 7px  solid #d3d3d3;
  18. border-left:   6px  solid #d3d3d3; 
  19. border-right:  4px  solid #d3d3d3;
  20. }
  21.  
  22. .mouseBeDown {
  23. border-top:    7px  solid #d3d3d3;
  24. border-bottom: 3px  solid #d3d3d3; 
  25. border-left:   4px  solid #d3d3d3; 
  26. border-right:  6px  solid #d3d3d3;
  27. }
  28.  
  29. .mouseBeUp {
  30. border-top:    4px  solid #d3d3d3;
  31. border-bottom: 6px  solid #d3d3d3; 
  32. border-left:   6px  solid #d3d3d3; 
  33. border-right:  4px  solid #d3d3d3;
  34. }
  35.  
  36. //-->
  37. </style>
  38.  
  39. <title><-- FAQs --> Provided by CRS Support</title>
  40.  
  41. <link rel="shortcut icon" href="P:/HTML Docs/favicon.ico"/>
  42. <!-- <table style="margin-left:0px" width="900px" height="150px" border="0" cellpadding="0" cellspacing="0" bgcolor="gray">
  43. <tr><td>
  44.  
  45. <h1 align=center></td></tr></h1> -->
  46. </head>
  47. <a name="top"></a>
  48. <table BORDER="5" cellpadding="0" cellspacing="0" width="100%" bgcolor="#C11B17">
  49. <td width="234" valign="top">
  50. </a>
  51. </td>
  52. <th valign="middle" align="left" class="right">
  53.  
  54. </table>
  55. <body bgcolor="#B7CEEC" text="000000" link="#153e7e" vlink="#1589FF" alink="red" width="900"><b>
  56. <table style="margin-left:1px" width="790px" border="0" cellpadding="0" cellspacing="2">
  57. <tr>
  58. <td width="137" class="content" valign="top"><br />
  59. <a class="left" href="FAQs[real].html" target="_top">
  60. <center>
  61. <img src="home3.jpg" 
  62. width="50" 
  63. height="50" 
  64. border="0" 
  65. alt="home" 
  66. class="mouseBeOffMe" 
  67. onmouseover="this.className='mouseBeOnMe'" 
  68. onmousedown="this.className='mouseBeDown'"
  69. onmouseup="this.className='mouseBeUp'" 
  70. onmouseout="this.className='mouseBeOffMe'"></center></a>
  71.  
  72. <hr style="color:#153e7e" />
  73.  
  74. <a class="left" href="FAQs[real].html" target="_top"></a>
  75.  
  76. <b><a style="color:#C11B17">FAQs</a></b><br />
  77.  
  78. <a class="left" target="_top" style="text-decoration:none" href="FAQs[real].html" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">FAQs HOME</a><br />
  79. <a class="left" target="_top" style="text-decoration:none" href="LAN FAQ Test Page.htm" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">LAN FAQs</a><br />
  80. <a class="left" target="_top" style="text-decoration:none" href="RADplus FAQ Test Page.htm" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">RADplus FAQs</a><br />
  81. <a class="left" target="_top" style="text-decoration:none" href="AccessHR FAQ Test Page.htm" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">AccessHR FAQs</a><br />
  82. <a class="left" target="_top" style="text-decoration:none" href="MS Office FAQ Test Page.htm" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">Microsoft Office FAQs</a><br />
  83. <br />
  84. <b><a style="color:#C11B17">RADplus ScreenShots</b><br />
  85.  
  86. <br />
  87. <b><a style="color:#C11B17">Examples/Quiz</b>
  88. <br />
  89.  
  90. <br />
  91. <b><a style="color:#C11B17">References</b><br />
  92. <br />
  93. <b><a style="color:#C11B17">Selected Reading</b><br />
  94.  
  95.  
  96. </b></td>
  97. <td valign="top">
  98. <br><br><table align="right" style="border: 1px solid gray" width="650" bgcolor="white" border="0" cellpadding="5" cellspacing="0">
  99. <tr>
  100. <td>
  101.  
  102.  
  103. <h1 style="color:#C11B17" align="center">Welcome to the Computer Help Center!</h1>
  104. <hr /><br><h3 style="color:#C11B17">Please follow the links on the left-hand side to find the info you need.</h3>
  105.  
  106. <hr />
  107.  
  108. <p class="intro">HTML uses a hyperlink to link to another document on the Web.</p>
  109.  
  110. <hr />
  111.  
  112. <h2 style="color:#C11B17">Examples</h2>
  113.  
  114. <p>
  115. <a target="_blank" href="tryit.asp?filename=tryhtml_links">Create hyperlinks</a><br />
  116. <a style="color:#C11B17">This example demonstrates how to create links in an HTML document.
  117. </a></p>
  118.  
  119. <p><a target="_blank" href="tryit.asp?filename=tryhtml_imglink">An image as a link</a><br />
  120. <a style="color:#C11B17">This example demonstrates how to use an image as a link.
  121. </a></p>
  122.  
  123. <p style="color:#C11B17">(You can find more examples at the bottom of this page)</p>
  124.  
  125. <hr />
  126. <br><p>
  127. <br>
  128.  
  129. </body>
  130. </html>
  131.  
Feb 7 '08 #1
2 2404
Markus
6,050 Expert 4TB
here's the general markup for a webpage:
Expand|Select|Wrap|Line Numbers
  1. <html doctype goes here...>
  2.  <head>
  3.   <title>Title</title>
  4.   <link= ... some links />
  5.   <script ... some script></script>
  6.   <style...>
  7.   </style>
  8.  </head>
  9. <body>
  10. <p>HTML MARKUS GOES HERE</p>
  11. </body>
  12. </html>
  13.  
In yours, you have markup inside the <head> tags.. this just won't fly with the html gods!

ya dig.
Feb 7 '08 #2
beacon
579 512MB
No, I don't dig. I'm still new to this, so I'm not sure how putting my markup in between p tags will help me with my alignment problem in either case.

Also, by markup, do you mean changing the fonts and things of that nature?

It may look like I know what I'm doing, but I've just been checking out a bunch of tutorials and trying to piece together as much of this as I can. I'm realizing that I should probably use CSS, but I know even less about it than I do HTML or javascript.
Feb 7 '08 #3

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

Similar topics

67
by: S.Tobias | last post by:
I would like to check if I understand the following excerpt correctly: 6.2.5#26 (Types): All pointers to structure types shall have the same representation and alignment requirements as each...
13
by: sachin_mzn | last post by:
Hi, What is the concept of memory alignment? Is memory alignment differs, If a data type is local to a function or if it is a member of structure or union? How 32 to 64 bit processor afftects the...
5
by: Hendrik Schober | last post by:
Hi, we just run into the problem, that "default" alignment in the project properies dialog seem to be different. We have a project that's a DLL, which is linked with a couple of LIBs. All are...
4
by: Arthur Dent | last post by:
Hello all, ive been programming with ASP.NET since it came out, but am just getting my feet with now with v.2. Ive noticed something strange in the way my HTML tables get rendered with 2. I use...
3
by: Bill Pursell | last post by:
I have a program that does most of its work traversing a bunch of lists. The lists contain a void *, and I spent some time today replacing the void *'s with a copy of the data at the end of the...
12
by: Yevgen Muntyan | last post by:
Hey, Consider the following code: #include <stdlib.h> #define MAGIC_NUMBER 64 void *my_malloc (size_t n) { char *result = malloc (n + MAGIC_NUMBER);
10
by: haomiao | last post by:
I want to implement a common list that can cantain any type of data, so I declare the list as (briefly) --------------------------------------- struct list { int data_size; int node_num;...
1
by: shalini jain | last post by:
Hi, I am being faced with a strange problem... I wrote a code for displaying pages in HTML and hence was using HTML parser. Now i am using the same code but now parsing using XHTML that is i want...
8
by: Stephen Horne | last post by:
I understand that the next C++ standard will have features to handle the alignment of data types. This is good, but a bit late for me! I've been using some template trickery to handle alignment...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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
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,...

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.