Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 58

FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
09/19/13 02:07 AM (12 years ago)

image probs

im trying to get a page, that loads, with an image on the top (logo) and then some text, the text is longer than the current page size, ive tried to do it in html 5 page, but the typing scrolls up over the image, which the client wont have, ive tried to insert it as a whole image ie logo and text, but it crops the image top and bottom, how do i get the page to scroll so that we see the logo and text and you can then scroll the image up to read the rest of the text cheers guys
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
09/19/13 03:20 AM (12 years ago)
So are you saying that you want a header image to always stay in place at the top and when the text is scrolled the logo image scrolls away too? In that scenario, the image can be declared in the html doc before the text, nothing too fancy needed there. Declare the image as 100% width, don't declare height and it will resize across different size screens. If you want the logo to always stay in place when you scroll, you could create a background image for the plugin which has the logo in it, but when you scroll, the text would over-write the image, which may be undesirable. Alan
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
09/19/13 03:22 AM (12 years ago)
how do you declare it in the doc before text dude, im a newbie at code, i had just figured this out, what you said, but i have no idea what to write in html 5 box sean
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
09/19/13 03:40 AM (12 years ago)
Hi Sean, here is some source html that is what I was talking about - should work for you I hope. Change logo.png to your image location, give it a go, let me know how you get on. Cheers, Alan <html> <head> <meta content="text/html; charset=ISO-8859-1"> <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; maximum-scale=1.0; user-scalable=1;"> <title>example</title> http-equiv="content-type"&gt; </head> <body> <img style="width: 100%;" src="logo.png"><br> <br> Text goes here<br> <br> </body> </html>
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1177
Reg: Aug 07, 2013
blackpool
14,570
like
09/19/13 03:48 AM (12 years ago)
hi allan, got it sussed, all you need to add for the image before your text it <img src="image.png" /> and make sure the image is in the docs folder in xcode, you pointed me in right direction, this helped as well http://www.buzztouch.com/forum/thread.php?tid=21993CE97DE49F84D075F1C&currentPage=1 cheers dude
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.