| » Stats |
Members: 103,403
Threads: 84,986
Posts: 1,031,253
Top Poster: Karky (9,546) | | Welcome to our newest member, ankkavfrav | |
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.
 | |
11-03-2003, 07:20 PM
|
Adding border around home page -- How? Post #1 | | Guest | Adding border around home page -- How?
Dear friends:
How do I add a border around the entire home page, please?
My URL is: http://www.immortalgems.com
Please note that this site also uses an external CSS style sheet: http://www.immortalgems.com/sft.css
This CSS style sheet is part of the original 5-page site template. I am actually using only the first page of this template (with various sections from the other pages incorporated into this home page). Does the CSS style sheet actually apply also to this 1-page modified template?
Thank you so much.
Benjamin
| |
| |
11-03-2003, 08:34 PM
|
Adding border around home page -- How? Post #2 | | Joe Blow
Join Date: Sep 2003
Posts: 3
Rep Power: 0 | Adding border around home page -- How?
Benjamin,
Yes, that stylesheet is linked to your home page, as indicated by this line in the head part of your html document: Code: <link href="sft.css" rel="stylesheet" type="text/css">
Every page with this line will link to the stylesheet.
I'm not sure what kind of border you want; if it's just a plain border, add the following to your stylesheet (it can be edited in a plain text editor): Code: body
{
border: 1px solid #000;
}
This will give you a solid black border 1 pixel in width. You can change th properties easily. You can also have a double border, or a dashed or dotted one.
For a good intro to css, check out w3schools. It's a great resource for learning CSS, HTML and many other web-based things.
If you want a graphical border, that's a much more complex subject.
|
| |
11-04-2003, 01:12 AM
|
Adding border around home page -- How? Post #3 | | Guest | Adding border around home page -- How?
Dear AppleCider:
Thanks so much for the code for the border, but it looks like your code puts a border around the entire screen. What I am looking for is a rectangular border around just the home page itself.
Or have I misunderstood something?
Thanks again.
Benjamin
| |
| |
11-04-2003, 03:21 AM
|
Adding border around home page -- How? Post #4 | | Joe Blow
Join Date: Sep 2003
Posts: 3
Rep Power: 0 | Adding border around home page -- How?
Benjamin,
I may have misunderstood. Techically, your "home page" includes what's called a "canvas," which is the entire browser window, including the white space around your table. The table is the text, graphics, etc. that's shown, minus the white background. Do you want a border around just what is shown, minus the white space? That's a bit more complex if you don't know a lot about css, but certainly not impossible. (Although, the way the css in this case is written, makes it needlessly hard.)
To clarify, see the graphic below. The browser canvass is the white color around your main table, or div.
Also, do you want this on every page, or just the home page?
Let me know, and I'll try to help you without rewriting the entire css file, which is way beyond the purpose of this forum |
| |
11-04-2003, 04:31 AM
|
Adding border around home page -- How? Post #5 | | Guest | Adding border around home page -- How?
Dear AppleCider and friends:
Yes, yes, that's precisely it. I would like a rectangular border around the table on each page, that is, to encase the entire page minus the white margins. As you can see, the open spaces on the right and left of the table (I don't mean the white margins but the open spaces that are part of the template design) cry out for a border to encase them. They are needed to define the table clearly so the contents don't look like they are about to fall out.
I don't mind just adding code to each page, if that's easier. There is no need to use CSS if it's too complicated. Shouldn't it be easy to add a boder to the table by using table properties in Dreamweaver?
Thanks to all of you.
Looking forward.
Benjamin
| |
| |
11-04-2003, 05:18 AM
|
Adding border around home page -- How? Post #6 | | Joe Blow
Join Date: Sep 2003
Posts: 3
Rep Power: 0 | Adding border around home page -- How?
Brief answer for now...it's late, more later.
No, CSS is much easier. I don't have Dreamweaver, and although I know DW has css capabilities, I don't know enough about it to tell you how to do that through the app. Table properties, through HTML won't give you what you want. More later, and I'll send you a PM.
|
| |
11-04-2003, 05:35 PM
|
Adding border around home page -- How? Post #7 | | Guest | Adding border around home page -- How?
Hey Julie- thanks for that link, I have been wanting to find a place to learn to understand CSS for a while. I know it's not new but it is fairly new to me.
I know this is a PS board :B but a quick question if you don't mind.
Can you use CSS to set Nav menu properties, so that you can change the menu ( just a simple text menu) on a style sheet and have those changes reflect throughout the entire site?
| |
| |
11-04-2003, 06:05 PM
|
Adding border around home page -- How? Post #8 | | Joe Blow
Join Date: Sep 2003
Posts: 3
Rep Power: 0 | Adding border around home page -- How?
Hey, Rick
Not sure what you mean about changing a menu...do you mean a different menu on different pages (or sections) of your site?
Sure, you can. That's the "cascade" part of cascading stylesheets. Say you want the menu, and only the menu, to change. Assuming you're linking to an external stylesheet which has the global site styles, you'd put the changes in either an internal stylesheet, below the external link in your html, or link to a separate external sheet, again listed below the main one. Like this: Code: <head>
<link href="yoursheet.css" rel="stylesheet" type="text/css">
<style type="text/css">
#nav {
color: #0f0;
background-color: #000;
}
</style>
</head>
The linked sheet would have the global styles that will show on this page too, except for the changes you made in the internal stylesheet, which "cascade" down and overrule the first sheet.
|
| |
11-04-2003, 09:03 PM
|
Adding border around home page -- How? Post #9 | | Guest | Adding border around home page -- How?
Here is a screenshot of what I mean Julie
Notice the nav menu on the left side. There are quite a few pages on the site and they all have the same menu, If I want to make changes I have to change every page. So could CSS help here so I would only need to change one page and have it reflect on all?
| |
| |
11-04-2003, 10:27 PM
|
Adding border around home page -- How? Post #10 | | Joe Blow
Join Date: Sep 2003
Posts: 3
Rep Power: 0 | Adding border around home page -- How?
Rick, sure, that's the beauty of using CSS. Just be sure all your pages have a link to the same stylesheet, and format your menu in that stylesheet. When you change and reupload the sheet, all pages will change.
This goes for all non-graphic elements on your pages. No more font tags to change! You can format the a-links with the font, text size, decoration, background, and declare the colors and/or backgrounds for the link, active, hover and visited states.
It's beyond a simple explanation to show exactly how it's done, but it can be done, and quite easily. |
| |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Other threads in forum General Photoshop Board | | Thread | Date | Thread Starter | Replies | Last Post | How can i do this ?
How can i do this ?: http://img440.imageshack.us/img440/6273/helpbu8.pn...
| 04-10-2007 | pizo73 | 3 | 04-12-2007 12:42 PM | SOTW #24 Discussion
SOTW #24 Discussion: Chit,chat.
| 03-19-2007 | Wnnrssn | 22 | 03-31-2007 05:04 PM | clown a person
clown a person: hi all,
Can anyone help with guiding about...
| 11-26-2005 | koko | 4 | 12-29-2005 09:17 AM | Turning image into a 1-3 colour image
Turning image into a 1-3 colour image: How would I turn a image with lets say 20...
| 11-30-2003 | Alistair | 6 | 10-13-2005 01:54 AM | animating a cereal box in max
animating a cereal box in max: hey guys. i've been working on this concept for a...
| 06-26-2005 | smdubin | 0 | 06-26-2005 06:17 PM | | » Online Users: 24 | | 0 members and 24 guests | | No Members online | | Most users ever online was 2,128, 07-21-2008 at 08:27 PM. | |