CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 16th, 2003, 12:03 PM
cyspry cyspry is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 cyspry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
CSS Help

Is there a way to have the *.css to include a text block. What I want to do is have my address appear at the bottom of every page. Above the address I also want a blue line that is 590 pixels long and 1 pix thick. At the top of the page I would like to also have a pic to appear. If anyone has some suggestions thanks,

Tony

Reply With Quote
  #2  
Old September 16th, 2003, 12:10 PM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
I do not know how to do it in CSS or if it is possible, but a javascript include would be one workaround... use document.write() to output the text block, save the script with a .js extension, and at the bottom of your pages put:
<script type="text/javascript" src="filename.js"></script>

Reply With Quote
  #3  
Old September 16th, 2003, 12:11 PM
cyspry cyspry is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 cyspry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
That would every page that I create to have the same pic at the top, the blue line and my address at the bottom?
Thanks,
Tony

Reply With Quote
  #4  
Old September 16th, 2003, 12:18 PM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
To put a pic at the top, you would probably have to make separate script, unless you positioned it absolutely, in which case you would need to make sure it was not going to cover up something... but yes, if logo.js was this:
Code:
document.write("<img src='logo.jpg'><br>");

you could put it in your page with this...
<script type="text/javascript" src="logo.js"></script>


Alternately, you could make something like includes.js and have it be like this...
Code:
function logo() {
  document.write("<img src='logo.jpg'><br>");
};

function footer() {
  document.write('<hr style="color:blue;height:1px;width:590px;" align=left>');
  document.write("This page was created by somebody!");
};

Then in your document head...
<script type="text/javascript" src="includes.js"></script>

And at the top and bottom of the page, call the functions you defined:
Code:
<body>
<script type="text/javascript">logo();</script>
...
<script type="text/javascript">footer();</script>
</body>

Reply With Quote
  #5  
Old September 16th, 2003, 12:20 PM
cyspry cyspry is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 cyspry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The advantage of css is that I can make a change to the one file and not have to hit every page. I have around 30-40 pages that would need to be changed everytime a changed needed to happen.
Thanks,
Tony

Reply With Quote
  #6  
Old September 16th, 2003, 12:21 PM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
The script tags would have to be put in every page, but editing the .js file would affect each page. So the script does have the same advantage... the disadvantage is that you have to put the new tags in... whereas you probably have the .css file already.

Reply With Quote
  #7  
Old September 16th, 2003, 05:33 PM
cyspry cyspry is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 6 cyspry User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
In the top pic in need to either embed links of through the script have the links placed. How do i do that??
Thanks,
Tony

Reply With Quote
  #8  
Old September 16th, 2003, 07:28 PM
Clone53421's Avatar
Clone53421 Clone53421 is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jun 2003
Posts: 689 Clone53421 User rank is Private First Class (20 - 50 Reputation Level)Clone53421 User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 17 h 7 m 56 sec
Reputation Power: 6
Send a message via AIM to Clone53421
That would be an image map. Do a web search for "image map"... one page that gives a demonstration is http://www.htmlgoodies.com/tutors/cs_imap.html -- but you could find scores of other tutorials most likely.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway