I'm new to CSS, need a little assistance

M

Mikecsitpro

I'm somewhat new to web design, I've done a little in the past, and slowly
getting used to it again. Though I haven't used CSS before.

What I'm tryng to do is take a background I created with Frontpage 2003, and
have it applied to the whole site, also the site is made using frames.

When I initially tried applying the background as a picture (prior to
looking throught the thread here) it merely repeated itself over the entire
page.

So I found this site and attempted to create a CSS page and copy the code of
the background into the empty CSS code page. Then saved it and went to the
main frameset page of the site and went from Format to Style Sheet Links to
add the CSS background.

At this point it had several options that I didn't fully understand, so I
choose the settings that I thought were right. Yet when it finished the page
didn't look any different. Also I had removed the background that I had
attempted before starting the CSS page.

Though, from what I can tell, it isn't working because I missing something.
In these posts, there was mention about a code, about repeat-no repeat, and
placing a /script in the the page where I want the background.

Would this be different then choosing setting in Style Sheet Links?

Any help is appreciated...I have other questions about this, but it that may
just confuse what I've already mention, please let me know if additional
information is needed.

Thanks

Mike
 
J

John Malone

Not sure exactly what you need.
If you are using frames (Not really recommended)
If you put a background image in the main frame page it will only center in
that frame.

The easy way to do this, for all the site, would be to make a external style
sheet and then link that sheet to the pages that will go in the "main"
frame.

The style sheet...
Copy and then paste this in "Note Pad"

body {
background-image: url(images/YOUR_File.jpg);
background-repeat: no-repeat;
background-position: center;
}

Then change the YOUR_File.jpg to the name of the picture you want to use.
NOTE: The path the picture in the above example is in the "images" folder.
If yours is in a different location that needs to be changed too.

Once you have made the changes to the picture file name save the file as
a_name.css

Open a page that will be in the main frame and then link the style (css file
you just made) sheet to the page.
How?
From the menu "Format" | "Style Sheet Links
New window:
Click "Add" and find the a_name.css file you just created.
(To start with only do the one page until you see what that looks like)

That should do it.. Save the page and then view it in the frameset.

HTH
--
John Malone
==============
| I'm somewhat new to web design, I've done a little in the past, and slowly
| getting used to it again. Though I haven't used CSS before.
|
| What I'm tryng to do is take a background I created with Frontpage 2003,
and
| have it applied to the whole site, also the site is made using frames.
|
| When I initially tried applying the background as a picture (prior to
| looking throught the thread here) it merely repeated itself over the
entire
| page.
|
| So I found this site and attempted to create a CSS page and copy the code
of
| the background into the empty CSS code page. Then saved it and went to the
| main frameset page of the site and went from Format to Style Sheet Links
to
| add the CSS background.
|
| At this point it had several options that I didn't fully understand, so I
| choose the settings that I thought were right. Yet when it finished the
page
| didn't look any different. Also I had removed the background that I had
| attempted before starting the CSS page.
|
| Though, from what I can tell, it isn't working because I missing
something.
| In these posts, there was mention about a code, about repeat-no repeat,
and
| placing a /script in the the page where I want the background.
|
| Would this be different then choosing setting in Style Sheet Links?
|
| Any help is appreciated...I have other questions about this, but it that
may
| just confuse what I've already mention, please let me know if additional
| information is needed.
|
| Thanks
|
| Mike
 

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