473,387 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to insert footer w/ CSS

SwimDude0614
I'm extremely new to CSS (learned it two nights ago) and my dad told me I could insert a footer or header or some sort of preformatted text using CSS.... then he went to bed.

My website is www.stlswedespeed.com

I'd like to pull the bottom navigation (includes the five links at the bottom: forums - calendar) out of that index page, store it somewhere else (if i understood him correctly it goes into my stylesheet?), and then reinsert it to the index, /links.html, and /about.html.

I tried looking through "CSS Cookbook" by Christopher Schmitt and couldn't find anything. I'd ask my dad again but he's not here until late tonight.

Thanks for any and all help.

David
Nov 1 '08 #1
15 3814
Markus
6,050 Expert 4TB
I don't know about CSS but you can definitely do it with javascript or a serverside language.
Nov 1 '08 #2
lol. The HTML and CSS that you see on that page is all I know about web design. My dad's job is building website (www.hens-teeth.net) and so when I started a Saab & Volvo club in town he started helping me build this site. All I know about Java is it lets me play really fun games online and lets my dad bring home the bacon.
Nov 1 '08 #3
drhowarddrfine
7,435 Expert 4TB
Two quick things:
1) Java is not the same as JavaScript and have no relation to each other.
2) New pages should always use a strict doctype. You have no need for the transitional one. Replace it with this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
Nov 1 '08 #4
2) New pages should always use a strict doctype. You have no need for the transitional one. Replace it with this one:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
huh???
sorry, I know very little about this stuff. I started this page with Nvu and then prettied her up Bluefish while learning CSS. I've no idea what that is you typed.

What is "doctype" and what transitional one are you talking about?
Nov 1 '08 #5
nvm. i see where at the top is says <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

what's that mean? I presume "DOCTYPE html" tells the browser it's an html document. what's the rest mean?
Nov 1 '08 #6
drhowarddrfine
7,435 Expert 4TB
Now pay attention or I'll come down from St. Charles and slap you.

The very first line of your html is the doctype. See the article about doctypes under the Howtos section at the top of this page.

Are you using Linux? (If so, good boy.)
Nov 1 '08 #7
you're IN st. charles??? do you know my dad? we're in st. charles too.

anyway, OF COURSE i'm using linux. i was just about to upgrade Ubuntu to 8.10 :D :D :D

well, i'll go read that article
Nov 1 '08 #8
drhowarddrfine
7,435 Expert 4TB
Ack! Weldon Spring actually. By 94 & O'fallon. No, I don't know your dad but I think I've heard of his company.
Nov 1 '08 #9
ok, well i read about doctypes and fixed that. for some reason only the index page was set to transitional.

so, back to the original question. how do i insert preformatted text?
Nov 1 '08 #10
drhowarddrfine
7,435 Expert 4TB
I'd like to pull the bottom navigation out of that index page, store it somewhere else and then reinsert it to the index, /links.html, and /about.html.
I don't understand that.
Nov 2 '08 #11
nvm. my dad finally got home and explained it to me. what i was asking wasn't possible but he did tell me the correct way to do it, so life is good.
Nov 2 '08 #12
drhowarddrfine
7,435 Expert 4TB
... so life is good.
Well, now, wait a minute. Let me think about THAT and I'll get back to you.
Nov 2 '08 #13
David Laakso
397 Expert 256MB
Well, now, wait a minute. Let me think about THAT and I'll get back to you.
Life is pleasant. Death is peaceful. It's the transition that's troublesome.
-- Isaac Asimov (1920 - 1992)
Nov 2 '08 #14
JamieHowarth0
533 Expert 512MB
Do you mean server-side includes, like this?

Expand|Select|Wrap|Line Numbers
  1. <!--#include file="footer.htm" -->
  2.  
and then in footer.htm:
Expand|Select|Wrap|Line Numbers
  1. <div class="footer">My footer stuff goes here</div>
  2.  
With SSIs you can drag content from an external HTML file into another HTML file, but you might need to rename the "parent" file to have a .shtm/.shtml extension.

Hope it helps.

codegecko
Nov 2 '08 #15
Do you mean server-side includes, like this?

Expand|Select|Wrap|Line Numbers
  1. <!--#include file="footer.htm" -->
  2.  
and then in footer.htm:
Expand|Select|Wrap|Line Numbers
  1. <div class="footer">My footer stuff goes here</div>
  2.  
With SSIs you can drag content from an external HTML file into another HTML file, but you might need to rename the "parent" file to have a .shtm/.shtml extension.

Hope it helps.

codegecko
Server Side Include is what I ended up doing. Now to learn the CSS for making the "Links" at the top of links.html appear yellow instead of grey like the rest.
Nov 2 '08 #16

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

Similar topics

8
by: Vanessa | last post by:
Hi In my VB Dot Net program, I'm using Automation to call Excel worksheet to do some insert some data. I have rename my worksheet to a name. eg. "ABC". How do I insert the worksheet name &...
1
by: Kat | last post by:
This is a new one on me...a user wants to select a report then see a checkbox list of the "groups" to be included in the report. He wants to turn on/off whether or not to insert a page break...
5
by: Chris | last post by:
Based upon some prevoius postings on what to do for adding a 'add' row to a datagrid I utilize the footer to create the 'add' row. The only issue is that I have it sharing the 'UpDate_Command' and...
2
by: creed1 | last post by:
I am currently working with an Active Server Page (ASP) that is set to redirect its output to Excel using Response.ContentType = "application/vnd.ms-excel". It works great, but I need to find a...
1
by: Hennie | last post by:
I have a textbox in the Footer of a Gridview. When I run an insert command I get the following error: " Object reference not set to an instance of an object. Description: An unhandled exception...
1
by: Hennie | last post by:
Hi Is it possible to insert records using the Footer row in a Gridview? I can do it with a datagrid in VS2003, but the same code in VS2005 give me an error: The code is: Dim strOperatorID As...
2
by: shapper | last post by:
Hello, I am working with a ListView but I suppose that with a GridView might be the same. Instead of having an Insert Button on each GridView row I would like to have only one Insert button,...
0
by: dcollier9 | last post by:
Hi ! I need to embed a text box in a footer of a GridView's boundfield column to get data prior to a row insert. The textbox is usable and showing up in the web page source using View
1
by: coolnavjot31 | last post by:
I have Gridview with Template Field.And I Put Dropdownlist at footer row of gridview. but when i insert the value from a database table in dropdownlist , than it generate error. for filling value ,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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,...

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.