| | Header/Transparent, with scrolling text | |
| | Author | Message |
---|
phaidonas
Posts : 24 Points : 32 Reputation : 0 Join date : 2017-02-07
| Subject: Header/Transparent, with scrolling text Fri Feb 10, 2017 11:18 pm | |
| | |
| | | Admin Admin
Posts : 46 Points : 78 Reputation : 3 Join date : 2017-02-06 Location : London, Milan
| Subject: Re: Header/Transparent, with scrolling text Sat Feb 11, 2017 1:41 pm | |
| Hi man, yes that's pretty simple, the code is open. Two things: header and background DIV positions are ixed. This is the trick. you have the HTML page here: - Code:
-
<div id="HeaderText"> Header </div>
<div id="ImgBg"> <img src="http://meche.mit.edu/sites/default/files/styles/hero/public/slides/Research%20Oceans.jpg?itok=okSrE16D"> </div>
<div id="MainText"> All you text should be here again </div>
and the CSS determines every behaviors: - Code:
-
#HeaderText{ position:fixed; z-index:9999; color:white; }
#MainText{ padding-top:10%; position:relative; color:white; }
#ImgBg{ position:fixed; z-indexz:-9999;
} | |
| | | phaidonas
Posts : 24 Points : 32 Reputation : 0 Join date : 2017-02-07
| Subject: Re: Header/Transparent, with scrolling text Sat Feb 11, 2017 8:24 pm | |
| yeah,i dont understand, i know what i have done,i want the text get under the header but not get mixed with the header text while scrolling | |
| | | Admin Admin
Posts : 46 Points : 78 Reputation : 3 Join date : 2017-02-06 Location : London, Milan
| Subject: Re: Header/Transparent, with scrolling text Sat Feb 11, 2017 8:32 pm | |
| are you sure you have created two DIV with different classes? And the div in the background must have background property : fixed!
| |
| | | phaidonas
Posts : 24 Points : 32 Reputation : 0 Join date : 2017-02-07
| Subject: Re: Header/Transparent, with scrolling text Sat Feb 11, 2017 8:47 pm | |
| yeah, except if i am mistaken | |
| | | Sponsored content
| Subject: Re: Header/Transparent, with scrolling text | |
| |
| | | | Header/Transparent, with scrolling text | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| Our first goal | Mon Feb 27, 2017 10:12 am by Admin | More than 20 users,
almost 150 posts,
a new big project is coming,
about …
| Comments: 0 |
Forum changements | Tue Feb 21, 2017 6:10 pm by Admin | Dear members,
I have personally made some changements into the forum, now …
| Comments: 2 |
A new revision of the forum rules | Tue Feb 07, 2017 9:40 pm by Admin | Dear Members,
it is my pleasure to tell you below all the new functions I …
| Comments: 0 |
Top posting users this week | |
|