|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by gkrabe in Active Server Pages (ASP), Cascading Style Sheets (CSS), Hypertext Markup Language (HTML)
I've written an html page and centered the body(fixed width) using text-align:center in my stylesheet. When I view it in any browser the page centers perfectly. However I have now moved this HTML into an ASP .Net web form and now the page refuses to center iin Browsers but when I view the page in 'Design' mode in VB .Net 2008 it shows it centered on the page. Does anyone know what I can do to get it centering as an .aspx page?
I've attached the html and the css stylesheet(as a .txt file).
Thanks so much!
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
|
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Media</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
</head>
<body>
<div id="wrapper">
<h1></h1>
<div id="top-nav">
</div>
<div id="mmagic"> </div>
<div id="header"> </div>
<div id="spacer"> </div>
<div id="body">
<div id="left">
<div id="nav">
<ul>
<li class="drk" style="width:80px;"><a href="http://www.free-css.com/">Home</a></li>
<li style="width:190px;"><a href="http://www.free-css.com/">Why Use Hypo-Allertal?</a></li>
<li style="width:65px;"><a href="http://www.free-css.com/">Uses</a></li>
<li><a href="http://www.free-css.com/">Contact us</a></li>
</ul>
<div class="clear"> </div>
</div>
<div id="visit">
<table>
<tr>
<td width="120px;" align="center">
<img src="images/1 tub.jpg" width="94" height="118"></td>
<td>
<h2>What is Hypo-Allertal...</h2><br />
Hypo-Allertal is a nutritional formula, based on free amino acids for the true hypoallergenic feeding of children under 1 year of age. It is suitable for the dietary management of multiple food intolerances and allergies as well as a sole source of nutrition.
<p class="more"><a href="http://www.free-css.com/">more...</a></p>
</td>
</tr>
</table>
</div>
<div id="subs">
<div id="subs-left">
<h3>Compant Information & Profile</h3>
<p>Even more websites all about website templates on <a href="http://www.justwebtemplates.com">Just Web Templates</a>.</p>
<h3>Company News</h3>
<p>If you're looking for beautiful and professionally made templates you can find them at <a href="http://www.templatebeauty.com">Template Beauty</a>.</p>
<h3>Company Services</h3>
<p>This is just a place holder so you can see how the site would look like.</p>
</div>
<div id="subs-right">
<h3>Browse</h3>
<ul>
<li>
<h4>Business & Money</h4>
<p>This is just a place holder so you can see how the site would look like.</p>
</li>
<li>
<h4>Entertainment</h4>
<p>This is just a place holder so you can see how the site would look like.</p>
</li>
<li>
<h4>Society & Culture</h4>
<p>This is just a place holder so you can see </p>
</li>
</ul>
</div>
</div>
</div>
<div id="right">
<div id="right-i">
<h3>How to get your hands on Hypo-Allertal...</h3>
<img src="images/TinyHand3.png" width="103" height="88" alt="Pic 1" class="left" />
<table border="0" width="176" height="79" cellpadding="0" cellspacing="0">
<tr>
<td height="19" width="176">1. Buy Hypo-Allertal <a href="Logon.aspx">Online</a></td>
</tr>
<tr>
<td height="19" width="176">2. Order By Phone by Calling<br /><p style="font-weight:bold;"> 27 11 83 692 9671</p></td>
</tr>
<tr>
<td height="19" width="176">3. Ask your Dietician about placing a special order</td>
</tr>
</table>
<p>
<br />
</p>
<br />
<h3>Sports</h3>
<img src="images/Success Story.png" width="103" height="88" alt="Pic 2" class="left" />
<p>This is a template designed by free website templates for you for free you can replace all the text by your own text.</p>
<p class="more"><a href="http://www.free-css.com/">more...</a></p>
<h3>Television</h3>
<img src="images/FAQ.png" width="103" height="88" alt="Pic 3" class="left" />
<p>If you're having problems editing the template please don't hesitate to ask for help on <a href="http://www.free-css.com/">the forum</a>.</p>
<p class="more"><a href="http://www.free-css.com/">more...</a></p>
</div>
</div>
<div class="clear"> </div>
</div>
<div id="copyright">
<p>© All rights reserved | designed by <a href="http://www.freewebsitetemplates.com">free website templates</a></p>
</div>
</div>
</body>
</html>
|
20091118-EE-VQP-93 - Hierarchy / EE_QW_3_20080625