Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Question on code

Reply
Thread Tools

Question on code

 
 
R. Place
Guest
Posts: n/a
 
      04-29-2004
Okay, what I want to accomplish is to have my middle cell scroll instead of
tiling the background image. What I have done is sliced a background image
into thirds and want to maintain the image integrity. I want to have the
image static and the text just scroll (if that is possible). I also want the
middle cell to use a seperate .css, I have been messing with this for a few
days and any help would be greatly appreciated. My question is how do i make
my text scroll for the middle cell and not tile the background image no
matter the amount of text. I want the cell to maintain its size.

Also below the HTML code is my .css for my outer scroll and my cell scroll.


++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++

html>

<head>

<title>Test</title>

<meta name="description" content="Test">

<meta name="keywords" content="Test">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<link rel="stylesheet" type="text/css" href="outerscroll.css">

</head>

<body text="#ffffff" bgcolor="#000000" topmargin="0" leftmargin="0"
scroll="auto">

<!-- start outer table -->

<table width="100%" height="100%" border="0" cellpadding="0"
cellspacing="0">

<tr><td align="center">

<!-- start border table -->

<table width="770" height="578" border="0" cellpadding="0" cellspacing="0"
bgcolor="#D9D8D5">

<tr><td align="center">

<!-- start inner table -->

<table width="768" border="0" cellpadding="0" cellspacing="0">

<tr>

<td bgcolor="#534f44" height="137"><img border="0"
src="images/header-title.jpg" width="768" height="137"></td>

</tr>

<tr>

<td bgcolor="#d7d7d7" height="302" background="images/middle2.jpg"
valign="top" align="left" class="scroll.css" scrolling="auto">

</td>

</tr>

<tr>

<td bgcolor="#534f44" height="137"><img border="0" src="images/Footer.jpg"
width="768" height="137"></td>

</tr>

</table>

<!-- end inner table -->

</td></tr>

</table>

<!-- end border table -->

</td></tr>

</table>

<!-- end outer table -->

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++
+++

CSS info:

Outerscroll;

BODY {

SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000;
SCROLLBAR-SHADOW-COLOR: #808080; SCROLLBAR-3DLIGHT-COLOR: #808080;
SCROLLBAR-ARROW-COLOR: #808080; SCROLLBAR-TRACK-COLOR: #000000;
SCROLLBAR-DARKSHADOW-COLOR: #000000

}

======================================


Scroll;


BODY {

SCROLLBAR-FACE-COLOR: #f0f0f0; SCROLLBAR-HIGHLIGHT-COLOR: #bababa;
SCROLLBAR-SHADOW-COLOR: #d3d2d4; SCROLLBAR-3DLIGHT-COLOR: #d3d2d4;
SCROLLBAR-ARROW-COLOR: #808080; SCROLLBAR-TRACK-COLOR: #d9d8d5;
SCROLLBAR-DARKSHADOW-COLOR: #bababa

}

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++
++++



 
Reply With Quote
 
 
 
 
Whitecrest
Guest
Posts: n/a
 
      04-29-2004
In article <(E-Mail Removed)>, "R. Place" <mrplace01
(at) nospam.comcast.net> says...
> Okay, what I want to accomplish...

<snip>

Put a div in the cell and put the text in the div. Set the scroll bar
appearance as needed.
--
Whitecrest Entertainment
www.whitecrestent.com
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      04-30-2004
"R. Place" <mrplace01(at) nospam.comcast.net> wrote:

> Okay, what I want to accomplish is to have my middle cell scroll
> instead of tiling the background image.


So why don't you even give a hint of that on the Subject line?

> Also below the HTML code is my .css for my outer scroll and my cell
> scroll.


You haven't been reading this group long, have you? Posting large chunks
of code is an almost sure way of getting just the wrong answers, if
anything. Post the URL and use a descriptive Subject line. Before you
start behaving that way, please do not fix your From line. TIA.

> html>


Oh, you have syntax errors at the very beginning. No wonder your page
does not work. HTH.


--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is the difference between code inside a <script> tag and code in the code-behind file? keithb ASP .Net 1 03-29-2006 01:00 AM
Fire Code behind code AND Javascript code associated to a Button Click Event =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?= ASP .Net 4 02-11-2004 07:31 AM
Re: Code Behind vs. no code behind: error Ben Miller [msft] ASP .Net 1 06-28-2003 01:46 AM
Re: C# Equivalent of VB.Net Code -- One line of code, simple Ian ASP .Net 0 06-25-2003 01:14 PM
Re: C# Equivalent of VB.Net Code -- One line of code, simple Ron ASP .Net 1 06-24-2003 07:18 PM



Advertisments