CSS DOES NOT DISPLAY IN IE7 FROM AN INDEX PAGE

M

Mark

Help please,

I have created a .css file and called it main.css the contents are
*********
<body bgcolor="#00FFFF">

<body>

<div align="center">
<table border="0" width="80%" cellspacing="0" cellpadding="0" id="table10">
<tr>
<td>

<div align="center">
<table border="0" width="100%" cellpadding="0" id="table11">
<tr>
<td>
<table border="0" width="100%" cellpadding="0" id="table18">
<tr>
<td>
</td>
<td align="center">
<font size="9">Didcot Photo</font></td>
<td>
</td>
</tr>
<tr>
<td>
<p align="center">
<img border="0" src="DPhoto_034.jpg" width="125" height="182"
align="right"></td>
<td align="center">
<p align="center">
<font size="6">
Mark Gillett<p align="center">
<span style="font-family: Times New Roman">07515104363</span><p
align="center">[email protected]</td>
<td>
<p align="center">
<img border="0" src="DPhoto_058.jpg" width="125" height="182"
align="left"></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0" id="table12">
<tr>
<td> </td>
</tr>
</table>
</div>



</html>

I have an index page which i have called the main.css from using FP2003

*********
The content is


<head>
<link rel="stylesheet" type="text/css" href="main.css">
</head>


please can some one let me know why this is not being displayed in I.E.7
 
R

Ronx

The files contents is HTML, not CSS. Therefore it cannot display, or
more accurately, style the display of the HTML in the page that calls
it.

A typical .css file might contain something similar to:

body {background: white; font-family: Arial, sans-serif; font-size:
small;}
p,td,th {color: black;}
a {color: red;}


I think you are talking about an include file - this requires a webbot
to include it.
Insert->Web Component->Included Content->Page
Click Finish
Browse to page to include

The included page must also have a complete set of HTML tags:
<html><head><title>..</title></head><body>
page content
</body></html>

(Your "css" file includes 2 body tags - 1 is sufficient and necessary
for an include page.)
 
M

Mike Mueller

This file is 100% hypertext, and has no styling in it.

Add an <html><head></head> to the very beginning, and save this as your
index page
 
M

Mark

I think I am missing something here.

I thought CSS sheets allowed me to, inessence, create a header which could
be applied to all my pages within a web site. Creat once then insert the css
to all the pages!

All I want to be able to do is have one row of three colums, center colum
has company name and contact details and the outer two coloums have a picture
in them, sounds simple but I can't get it to work.

It does how ever work in HTML which gives me what I want but uses to much
disk space when css I know will do the same but be smaller on disk.

Is there an online tutorial which can help me?
 
M

Mike Mueller

Glossary of terms:
HTML- HyperText Markup Language. This is the actual content of the webpage
CSS- Cascading Style Sheet. This information styles the webpage. This
information can be in the HTML or in a seperate file

What you are looking for is most likely a DWT, or Dynamic Web Tempate. This
is an HTML page (and its relative CSS) which would be your layout template,
and then you can build pages from that by just putting in the unique content
for that page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top