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
15 3814
I don't know about CSS but you can definitely do it with javascript or a serverside language.
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.
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">
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?
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?
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.)
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
Ack! Weldon Spring actually. By 94 & O'fallon. No, I don't know your dad but I think I've heard of his company.
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?
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.
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.
... so life is good.
Well, now, wait a minute. Let me think about THAT and I'll get back to you.
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)
Do you mean server-side includes, like this? -
<!--#include file="footer.htm" -->
-
and then in footer.htm: -
<div class="footer">My footer stuff goes here</div>
-
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
Do you mean server-side includes, like this? -
<!--#include file="footer.htm" -->
-
and then in footer.htm: -
<div class="footer">My footer stuff goes here</div>
-
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.
Sign in to post your reply or Sign up for a free account.
Similar topics
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 &...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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,...
|
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
|
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 ,...
|
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,...
|
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$) {
}
...
|
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...
|
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...
|
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
|
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...
|
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,...
|
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...
|
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,...
| |