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 - <table class="main">
-
<tr>
-
<td height="214" colspan="2" valign="top"><table class="topinfobox">
-
<tr>
-
<td width="168" height="189" align="left"> </td>
-
<td width="218" align="left" valign="top"><p><strong>Do you want to..</strong></p>
-
<p align="left">Learn to play an instrument?<br />
-
Form a Rock Band?<br />
-
Form a Pop Group?<br />
-
Be an MC/DJ?<br />
-
Record your own music?<br />
-
Be a Radio DJ or Producer?<br />
-
Set up a Record Label?<br />
-
Play live in your own venue?<br />
-
Be a music reporter or critic? </p>
-
<p><strong>Just have FUN with music?</strong></p></td>
-
<td width="298" align="left" valign="top"><p><strong>We can..</strong></p>
-
<p>Teach you to play or sing.<br />
-
Provide mentors to help you.<br />
-
Provide our own Internet Radio Station.<br />
-
Provide our own recording studio.<br />
-
Provide our own live venue.<br />
-
Provide our own educational programmes.<br />
-
Provide what you need. <br />
-
If we don't have it we'll try and get it.<br />
-
<br />
-
</p>
-
<p><strong> Let you have FUN with music.</strong></p></td>
-
<td width="298" align="left" valign="top"><p><strong>Don't want to sing or play?</strong></p>
-
<p>How about becoming a volunteer?<br />
-
Can you mentor?<br />
-
Can you Fundraise?<br />
-
Can you talk companies into giving us stuff for FREE?<br />
-
Can <strong>YOU</strong> give us stuff for FREE? </p>
-
<p>If so contact us, or come down to The Lighthouse and talk to us. We need your help.</p></td>
-
</tr>
-
</table>
6 2377
In one of your stylesheets you have 'body p {text-align:center}'
Thank you for your reply.
However, I cannot find this code. Could you be more specific.
Regards
Ray
It's not in what you posted, it's in your link in the HTML.
Wow! great spot. That was in the footer.
How did that have an effect on the main code?
Ray
'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>.
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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.
|
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>
|
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...
|
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...
|
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%">
| |
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,...
|
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...
|
by: harryjohal |
last post by:
<?php
$host="localhost";
$username="user";
$password="rmypwd";
$db_name="mydb";
$tbl_name="articles";
$cmd=$_GET;
$id=$_GET;
|
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...
|
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();
|
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,...
| |
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...
|
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...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |