Hello,
I was wondering how one can build a "adjustable" black frame like on this website :
demarchelier.com/
Here is my website :
fjrr.fr
Thanks,
Fabien
Hello,
I was wondering how one can build a "adjustable" black frame like on this website :
demarchelier.com/
Here is my website :
fjrr.fr
Thanks,
Fabien
There's many ways to do this.
One of which is to attach divs that create a border like this before your #index and #exhibit divs.
Check out the source code of the page you posted to see whaat I mean...
Hello,
thanks for the answer.
I've been trying many things since this morning ; none of them work ;
I found things like this (for the left side of the frame) on the css of the website i try to imitate :
#left {
left: 0;
}
#left, #right {
bottom: 0;
top: 0;
width: 15px;
}
#top, #bottom, #left, #right {
background: none repeat scroll 0 0 #000000;
position: fixed;
z-index: 99;
}
But when I insert them in my style.css before #index, it doesn't do anything ;
I'm missing something but don't know what
Am I being too vague ?
What is an 'adjustable' black frame? Yeah, it's pretty vague to me...
Hello thanks again for answering,
i mean a frame that follows the window if you make it bigger of smaller.
demarchelier.com/
like if you go to this website and change the size of the navigator window, the frame stays stuck to it ;
But finding out how to even make a frame in the first place would be great..
Normally I would not do this, but this code has been around for years - it's very easy to do. You need to add this to your CSS:
/* black frame */
#top, #bottom, #left, #right { background: #000; position: fixed; z-index: 9999; }
#left, #right { top: 0; bottom: 0; width: 15px; }
#left { left: 0; }
#right { right: 0; }
#top, #bottom { left: 0; right: 0; height: 15px; }
#top { top: 0; }
#bottom { bottom: 0; }
In your template just after the body tag before anything else add:
<div id="left"></div>
<div id="right"></div>
<div id="top"></div>
<div id="bottom"></div>
And there you go...
Alright,
it is all black but at least something appeared.
I'm going to try to figure it out now,
Thanks a lot,
Everything is alright, i created a wrapper before without really knowing what it is and i just had to insert the divs after it in the template,
Best,
This thread has been closed, thank you.