473,809 Members | 2,735 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unable to align text

4 New Member
Hi All
This may seem like a stupid question but I can't get my text to left align. It used to but it's now decided to centre and I can't see why.

I have include the css and the relevant table code. If one of you can spot the problem I would appreciate it.

The table "top info box" is within the table "main".

The page can be seen at it's temporary home here. http://mariehines.co.uk/NEW/home.php

Regards
Ray

CSS
body {
background: #FFFFFF ;
/*: url(bg.jpg) fixed; */
text-align: left;
color: #000000;
font: 11px verdana, sans-serif;
margin: 0px;
padding: 0px 0px 0px 0px;
}
.header {
width: 1200px;
height: 235px;
margin-left:auto; margin-right:auto;
background: url(images/header.jpg) no-repeat;
font: 9px verdana, sans-serif;
text-align: right;
color: #000000;
}
.main {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
background: url(images/bg1200x1200_R.j pg) no-repeat;
font: 10px verdana, sans-serif;
text-align: left;
color: #000000;
}

.topinfobox {
width: 100%;
margin-left:auto; margin-right:auto;
font: 10px Verdana, Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;

}

.sideinfobox {
width: 490px;
font: 10px "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;
}
.liveinfobox {
width: 600px;
font: 10px "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;
}

.bold {
font-weight: bold;
}
.eandrinfobox {
width: 99%;
font: 10px "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
color: #000000;
}
.H1{
font: 200% "Verdana", Arial, Helvetica, sans-serif;
text-align: left;
/* color: #f97373 */
}
.blank {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
/* background: url(bg1200x1200 _R.jpg) no-repeat; */
/* border-left: solid 2px #000000; */
font: 10px verdana, sans-serif;
text-align: right;
color: #000000;
}
.rockschool {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
background: url(images/bg1.jpg) no-repeat; */
/* border-left: solid 2px #000000; */
font: 10px verdana, sans-serif;
text-align: right;
color: #000000;
}
.media {
width: 1200px;
height: 1200px;
margin-left:auto;
margin-right:auto;
background: url(images/bg2.jpg) no-repeat; */
/* border-left: solid 2px #000000; */
font: 10px verdana, sans-serif;
text-align: right;
color: #000000;
}
.radiolisting {
width: 100%;
font: 10px verdana, sans-serif;
text-align: left;
color: #000000;
}
A.link {
font-family: tahoma;
font-weight: normal;
font-size: 10px;
text-decoration: none;
color: #D1CE89;
}
A.visited {
font-family: tahoma;
font-weight: normal;
font-size: 10px;
text-decoration: none;
color: #d1a78f;
}
A.menu2:hover {
font-family: tahoma;
font-weight: normal;
font-size: 10px;
color: #D9D49A;
font-style: normal;
text-decoration: none;
}

.main tr td .sideinfobox tr td p {
text-align: left;
}
TABLE CODE
Expand|Select|Wrap|Line Numbers
  1. <table class="main">
  2.   <tr>
  3.     <td height="214" colspan="2" valign="top"><table class="topinfobox">
  4.       <tr>
  5.         <td width="168" height="189" align="left">&nbsp;</td>
  6.         <td width="218" align="left" valign="top"><p><strong>Do you want to..</strong></p>
  7.           <p align="left">Learn to play an instrument?<br />
  8.               Form a Rock Band?<br />
  9.               Form a Pop Group?<br />
  10.               Be an MC/DJ?<br />
  11.               Record your own music?<br />
  12.               Be a Radio DJ or Producer?<br />
  13.               Set up a Record Label?<br />
  14.               Play live in your own venue?<br />
  15.               Be a music reporter or critic? </p>
  16.           <p><strong>Just  have FUN with music?</strong></p></td>
  17.         <td width="298" align="left" valign="top"><p><strong>We can..</strong></p>
  18.           <p>Teach you to play or sing.<br />
  19.               Provide mentors to help you.<br />
  20.               Provide our own Internet Radio Station.<br />
  21.               Provide our own recording studio.<br />
  22.               Provide our own live venue.<br />
  23.               Provide our own educational programmes.<br />
  24.               Provide what you need. <br />
  25.               If we don't have it we'll try and get it.<br />
  26.               <br />
  27.             </p>
  28.           <p><strong> Let you have FUN with music.</strong></p></td>
  29.         <td width="298" align="left" valign="top"><p><strong>Don't want to sing or play?</strong></p>
  30.           <p>How about becoming a volunteer?<br />
  31.               Can you mentor?<br />
  32.               Can you Fundraise?<br />
  33.               Can you talk companies into giving us stuff for FREE?<br />
  34.               Can <strong>YOU</strong> give us stuff for FREE? </p>
  35.           <p>If so contact us, or come down to The Lighthouse and talk to us. We need your help.</p></td>
  36.       </tr>
  37.     </table>
Feb 5 '10 #1
6 2377
drhowarddrfine
7,435 Recognized Expert Expert
In one of your stylesheets you have 'body p {text-align:center}'
Feb 5 '10 #2
acorna
4 New Member
Thank you for your reply.

However, I cannot find this code. Could you be more specific.

Regards
Ray
Feb 5 '10 #3
drhowarddrfine
7,435 Recognized Expert Expert
It's not in what you posted, it's in your link in the HTML.
Feb 5 '10 #4
acorna
4 New Member
Wow! great spot. That was in the footer.

How did that have an effect on the main code?

Ray
Feb 5 '10 #5
drhowarddrfine
7,435 Recognized Expert Expert
'body p' means all p that's a descendant of body. That's the "cascading" part of CSS. It doesn't matter where you declare it but <style> belongs in the <head>.
Feb 6 '10 #6
acorna
4 New Member
Thanks again dr. The css in the footer is only temporary until the contents have been decided. All css will eventually be in one file.

Thanks for the explanation, it's appreciated.

Ray
Feb 6 '10 #7

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

Similar topics

1
2303
by: Arun Nair | last post by:
Hi, I have the following jsp page. I am able to view only a part of it(until the occurence of the first City text box). If i remove the first few fields from the page, I am able to see a few more fields at the bottom. My form class contains all the properties that are used in the jsp page. I don't know what I am doing wrong. I am using struts1.1 & JDK 1.4.2.
0
1369
by: deepaks85 | last post by:
Dear Friends, I am trying to upload multiple files. But I can't find why it is not working fine. Here is the code......... numfile.php <form method="POST" action="fileupload.php"> <p align="center"> <font face="Verdana" size="2">Number of files</font> <input type="text" class="text" name="numfiles" size="3" maxlength="3"><br>
5
3880
Tarantulus
by: Tarantulus | last post by:
Hi, ok, quick description of the problem, I'm trying to reference the postdata from some checkboxes. Unfortunately the checkboxes are dynamically generated therefore I don't know how many there are and thus can't name them individually. I remember reading that naming them with square brackets (as "name") will automatically create an array in the postdata (meaning $_POST is an array) is this true? anyway, the fact is that my checkboxes...
7
1569
by: Dave Hardenbrook | last post by:
I am new to ASP.NET (only coded web pages in HTML in the past), and I'm having some trouble: I have a form on which a visitor to my page can fill out comments and send them to my E-mail box. The code works fine when I test it on my local machine; but for the identical code deployed to my web site (hosted on GoDaddy.com), when I click the "Submit" button to send the E-mail, an exception is thrown containing the following error: Request...
2
16370
by: yangtono | last post by:
Hi, I am creating a table to list some data. The table is using a sorting and highlight function that I found from the net. I can't attach image here, basically html will wrap the heading, therefore I notice the second line of the header is left align instead of centering. I believe it's because of the sort.htc script that will output an arrow when user click on the header to sort. The code is as below: <TABLE width="100%">
18
2416
vikas251074
by: vikas251074 | last post by:
I am using ASP In my company, all employees have to sent materials out of premises. Any employee who need to sent material out will use this web application. In the first page, an employee enters firm name, vehicle no, driver name, purpose, persons taking out, received by, remarks. In the second page, employee enters no. of materials to be taken out. In the third page, displays no. of rows for entry of material details like material name,...
2
3014
by: Kevin | last post by:
I am having difficulty updating a variable page-time-stamp in the following snippit. The variable time-stamp is initialized from the attribute time-stamp from the log element. Some of the page elements (children of log) in my XML source have a time-stamp attribute, so I want to use the time-stamp from the page for the page-time-stamp value. I use an xsl:choose/xsl:when/xsl:otherwise combination to setup an if/else statement to select the...
8
2011
by: harryjohal | last post by:
<?php $host="localhost"; $username="user"; $password="rmypwd"; $db_name="mydb"; $tbl_name="articles"; $cmd=$_GET; $id=$_GET;
1
1917
by: aashishn86 | last post by:
in my form i give the user two options, either to 'add a new transaction' or delete an existing one. the code for it is: for add transaction <table align=center border='1' bordercolor="#ffffff" cellpadding="0" cellspacing="0" class='verdana2' width="100%"> <tr <td bgcolor='#cccccc' align='middle'> <b><A style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana, Arial, Helvetica, Sans-Serif; TEXT-DECORATION: none" href="Input.asp" ><center>Add New...
1
2847
by: irfanshariffa | last post by:
<html> <head> <script type="text/javascript" language="javascript"> function validate() { if (document.form.fname.value=="") { alert("Enter your Name"); document.form.fname.focus();
0
9602
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10639
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
10120
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...
1
7661
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
6881
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
5688
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4332
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 we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.