The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Scroll-box with background + top and bottom images outside scroll-box
Lugie
post Jul 5 2012, 07:00 AM
Post #1





Group: Members
Posts: 6
Joined: 5-July 12
Member No.: 17,384



Hello,

Im pretty much a beginner in webpage building and need some help with one thing.

What I´m trying to do is to creat a scrollbox with a background on it and then some text and links on top of the background. I also want some top and bottom images around the scrollbox that will stay in the same place (not scrollable). There is a webpages that have a model that looks like the one I am trying to ctreate, the only difference to the model is that it doesn´t have a scrollbox as I want. You can find the model here: http://summervillage-wells.com/irmnet/

I have already created a scrollbox with a custom (jScrollPane) scrollbar I made in photoshop, but I just can´t get the background images to work and to be able to type on top of it. Also I can´t get the top and bottom images to stick to the scrollbox, it always leave a space between the scrollbox and the images.

Help would be much appreciated!

This post has been edited by Lugie: Jul 5 2012, 07:00 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 5 2012, 07:09 AM
Post #2


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,730
Joined: 9-August 06
Member No.: 6



Doesn't sound complicated. Apply a background image to the scolling DIV with CSS. That's all you need. Can you show what you have so far?


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lugie
post Jul 6 2012, 03:24 AM
Post #3





Group: Members
Posts: 6
Joined: 5-July 12
Member No.: 17,384



QUOTE(pandy @ Jul 5 2012, 07:09 AM) *

Doesn't sound complicated. Apply a background image to the scolling DIV with CSS. That's all you need. Can you show what you have so far?



Well at this point it will be hard for me to show it for you but I can give you the HTML code and the CSS code to take a look at. But my biggest problem is to get the top and bottom images attached to the scrollbox so that it looks like one piece.

I attached the code files for you.


Attached File(s)
Attached File  style_scroll.css ( 6.61k ) Number of downloads: 33
Attached File  HTML_Code.txt ( 11.26k ) Number of downloads: 52
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 6 2012, 07:49 AM
Post #4


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,730
Joined: 9-August 06
Member No.: 6



There are references to scripts and images we don't have access too. Can't you just upload the lot to a temp folder?

I missed that the whole thing should look as a background image is used. Maybe you need to make the background of the scrolling div fixed. Just thinking aloud. Haven't tried it that I can recall.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lugie
post Jul 10 2012, 08:35 AM
Post #5





Group: Members
Posts: 6
Joined: 5-July 12
Member No.: 17,384



QUOTE(pandy @ Jul 6 2012, 07:49 AM) *

There are references to scripts and images we don't have access too. Can't you just upload the lot to a temp folder?

I missed that the whole thing should look as a background image is used. Maybe you need to make the background of the scrolling div fixed. Just thinking aloud. Haven't tried it that I can recall.



Okay, I got a preview of the webpage uploaded here http://tinyurl.com/czo5u8x take a look and maby you find an idea on how to make it look right. I know that the background image of the scroll-bar should be written differently since it only is there as a picture now and not as a background that you can apply text to. The hole "bottom picture" doesn´t show up and that maby because the background images is placed as a long picture in the scroll-box. You can also see that the scroll-bar is positioned too much to the left. The custom made scroll-bar will not look like that later on.

This post has been edited by Lugie: Jul 10 2012, 08:50 AM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 10 2012, 08:49 AM
Post #6


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,730
Joined: 9-August 06
Member No.: 6



OK. I guess I misunderstood that it should look like a single image. You can't type on top of the striped background because it isn't a background. It's an inline image. Just use the image as a background for that TD.

Also, spaces aren't allowed in URLs. You need to encode them with %20, for example:
CODE
bilder/bakgrund/Stuglista%20lista.png


In the long run it's easier and neater to avoid spaces in file names. Use underscore or whatever if you want to separate words.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lugie
post Jul 10 2012, 09:27 AM
Post #7





Group: Members
Posts: 6
Joined: 5-July 12
Member No.: 17,384



QUOTE(pandy @ Jul 10 2012, 08:49 AM) *

OK. I guess I misunderstood that it should look like a single image. You can't type on top of the striped background because it isn't a background. It's an inline image. Just use the image as a background for that TD.

Also, spaces aren't allowed in URLs. You need to encode them with %20, for example:
CODE
bilder/bakgrund/Stuglista%20lista.png


In the long run it's easier and neater to avoid spaces in file names. Use underscore or whatever if you want to separate words.


Okay thanks, but if I set the striped image as a background in the scroll-box then it wont scroll. You have to see the striped image as a list and in every rectangle box there will be a picture and some text plus a link to another page. How do I make all the elements to work at the same time (scroll, text in boxes)?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 10 2012, 11:49 AM
Post #8


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,730
Joined: 9-August 06
Member No.: 6



That won't work because you can't know how large text your visitors use. It would be better to simply stack a bunch of DIVs that each holds an image and the corresponding text. Then use alternate background colors for the DIVs. Don't need a background image really.



--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lugie
post Jul 10 2012, 05:48 PM
Post #9





Group: Members
Posts: 6
Joined: 5-July 12
Member No.: 17,384



Thank you so much. I got it fixed, but I have only one problem with it and that is that the scroll bar doesn´t go to the bottom of the scroll-box. How do I fix that? I have tried to change everything I can think of. Take a look http://tinyurl.com/czo5u8x
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jul 10 2012, 06:30 PM
Post #10


Don't like donuts. Don't do MySpace.
********

Group: WDG Moderators
Posts: 13,730
Joined: 9-August 06
Member No.: 6



Don't know. I'm not familiar with the script or with jQuery.

I notice though that the page looks different in every browser I tried. When I change text size things move around and even dissappear, different things in different browsers.


--------------------
“Never go to excess, but let moderation be your guide.”
– Cicero

IPB Image
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Lugie
post Jul 10 2012, 06:36 PM
Post #11





Group: Members
Posts: 6
Joined: 5-July 12
Member No.: 17,384



QUOTE(pandy @ Jul 10 2012, 06:30 PM) *

Don't know. I'm not familiar with the script or with jQuery.

I notice though that the page looks different in every browser I tried. When I change text size things move around and even dissappear, different things in different browsers.


Yes I saw that the scroll-box change place when zooming the browser window. How do I get a fixed size on it?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post Jul 11 2012, 01:04 AM
Post #12


WDG Member
********

Group: Root Admin
Posts: 7,856
Joined: 4-August 06
From: Mountain View, CA
Member No.: 3



QUOTE
How do I get a fixed size on it?
You can't. The user has ultimate control over the font size.

See also:
http://www.w3.org/WAI/GL/css2em.htm
http://www.westciv.com/style_master/house/..._oil/not_paper/


--------------------
Darin McGrew
WDG Member since 1998
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th May 2013 - 07:04 AM