473,473 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS won't work?

1 New Member
Hey everyone, I've recently started writing my own website and I'm learning how to use CSS. My problem is: after typing everything I wanted CSS to output; the only thing that was affected was the body!

This is my text:

Expand|Select|Wrap|Line Numbers
  1.     <style type="text/css">
  2. body { background-image: url("Fire.jpg");
  3.           background-position: 50% 50%;
  4.           background-repeat: no-repeat; }
  5. #Main { vertical-align: 50% }
  6. p { font-family: "Times New Roman" color: white; }
  7. h1 { font-family: "Times New Roman" color: yellow; }
  8.      </style>
  9. <body>
  10. <! -- Main -->
  11.     <iframe src="Main.htm" style="height:550px; width:400px; border:1px;" name="Main" scrolling="yes" align="right">
  12.         <iframe ID=Main>
  13.     <a href="Main.htm">Your browser does not support iframes
  14.     </a>
  15.    </iframe>
Only my background image showed up. The paragraphs and heads that I put up were still colored black and in Ariel. My iframe (ID-ed "Main") was still up top. What did I do wrong? Did I type something wrong in my text?

This is the website:
http://www.freewebs.com/kwanblog/index.htm
Aug 2 '08 #1
2 1389
oler1s
671 Recognized Expert Contributor
Fix all validation errors first.
Aug 2 '08 #2
nitinpatel1117
111 New Member
if you want '#Main' to apply to your iframe then you need to give your Iframe

[HTML]id="Main"[/HTML]


also i think you may have to put the

[HTML]p { font-family: "Times New Roman" color: white; }
h1 { font-family: "Times New Roman" color: yellow; }[/HTML]

inside your 'Main.html' page and not on this page. (not entirley sure on this though)
Aug 7 '08 #3

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

Similar topics

16
by: Kerry Neilson | last post by:
For the past couple of months, Idle won't start when I invoke it. I am at a complete loss for why this is. When this happens, they python command line still starts, and python works fine...
1
by: Jim | last post by:
Hey guys I DESPERATLY need some help with this small javascript i have on this website. All that it's supposed to do is change the button image once it's pressed but alas... I copy-pasted the code...
3
by: DFS | last post by:
I've been working around this for years (I believe), so I figured someone here might know: Why won't a crosstab query accept a value from a form reference? TRANSFORM...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
11
by: John Ortt | last post by:
Hi everyone. I have a database which I have developed in Access 2000 which is working nicely. The problem is that my customer only has Access 97. I tried to convert the database but the main...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
2
by: scitrenbaum | last post by:
Here is the dilemma. I have a website where everything works perfectly in all browsers except for Safari. When you are in Safari and you go to this page... ...
2
tpgames
by: tpgames | last post by:
Two days ago, MS office Word would type JP fonts, I thought. I didn't think I was using Works. Now, it won't type in JP. Jasc Paint shop pro 8, should type JP fonts because I am using XP, according...
4
by: z55177 | last post by:
My domain: http://www.esthevision.cz/ This is the cause of my problem. The template is supposed to look somewhat like this: PINK STRIPE http://themebot.com/website-templates/ht... I created an...
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,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...

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.