English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm working on a site and all the text and what not are in php files, but the active link colors aren't looking to good, so in Dreamweaver if I click on the "Page Properties" and edit the colors there (and then "export" the css that comes up ion the CSS porperties section) can I use the CSS to define the active color links? in the PHP files in the html page?
Also, what is an iFrame, and how do I change the background color of it in Dreamweaver?
Thanks for any help.

2006-08-31 14:35:41 · 4 answers · asked by J23 3 in Computers & Internet Programming & Design

My bad, there is no html, it's a pure php link, so I can't eddit the css in the html, since there isn't any. HELP!

2006-08-31 15:38:42 · update #1

4 answers

To change the color of an iFrame in dreamweaver, you have to open up the iFrame page and change the CSS or bgcolor on that page.

in your Dreamweaver, you will see a call to the iFrame. It will look something like this:



in this case, I would open the file named "addressOfFrame.htm" and in the header of that page write:



you can also edit the body tag - but that's old code. And, it's best to put all the css in one external file instead of in the header, but I am just trying to help you with this scenario.

to change the link color, I would do this in the MAIN page if the link is in the main page, or in the frame page, if the link is in the IFrame:



The CSS in the page will control the php that is rendered. PHP does a lot of stuff on the back end, but it only sends HTML to the users browser. All HTML can be controlled by CSS.

2006-09-03 06:53:30 · answer #1 · answered by ★ Estelle ★ 6 · 0 0

You can put the style definitions in an external file and then add some html into the php files to link them to it.
Here is the general form.


An iframe, short for inline frame. Allows you to include another html (or php/jsp/cgi) file in your page. You can change the background by setting the property using CSS in the file that you are importing with the iframe. You can try adding a style rule to the iframe tag, but if the referenced page defines its background, it will over-ride your definition.

2006-09-01 00:11:28 · answer #2 · answered by run4ever79 3 · 0 0

If the css is something like this

a:active {
color: #990000;
text-decoration:underline;
}

Then you can just put that in script section of your html page.

An iframe is an "In line Frame". It is a seperate webpage that appears in the middle of your web page. It does not usually have borders.

In the Iframe is a completely seperate webpage that you must edit.

2006-08-31 22:10:47 · answer #3 · answered by LorettoBoy 4 · 1 0

Can you post the first 10 lines of the php code?

A php file is typically an HTML file with PHP tags around it, however, this is not always the case...it would help to see the code first.

2006-09-01 18:53:42 · answer #4 · answered by achtungbaby 3 · 0 0

fedest.com, questions and answers