This is a different kind of a gallery.
Here is a fiddle http://jsfiddle.net/HVMt9/
When the page loads, you see the title and a big image with 100% height and width.
I want it to scroll, and the part where the image ends and the orange-ish part starts, the one with the text 'portfolio', i want the 6 images below it and the orange part to fit the page, 100%.
that means that starting from the orange part to the end of the gallery must be 100%height.
The problem here is that the gallery is not fitting 100% into the screen and is shortened or something like that.
How do i make it like so the gallery images is 100%hieght and width.
i used
HTML
<div class="PortfolioMain">
<div class="HeadingBar"> <span class="HeadingBarText"> Portfolio </span>
</div>
<div class="Portfolio">
<img src="1.png" class="HomePortfolioLeft" />
<img src="2.png" class="HomePortfolioCenter" />
<img src="3.png" class="HomePortfolioRight" />
<img src="4.png" class="HomePortfolioLeft" />
<img src="5.png" class="HomePortfolioCenter" />
<img src="6.png" class="HomePortfolioRight" />
</div>
</div>
CSS
.HeadingBar {
display:table;
width:100%;
height:8%;
background-color:tomato;
}
.HeadingBarText {
display:table-cell;
vertical-align:middle;
padding-left:30px;
font-size:30px;
font-family:Helvetica, Arial, sans-serif;
}
.PortfolioMain {
width:100%;
height:100%;
}
.Portfolio {
width:100%;
height:100%;
margin:0;
padding:0;
}
.HomePortfolioLeft {
width:33.33%;
height:33.33%;
margin:0;
padding:0;
float:left;
}
.HomePortfolioCenter {
width:33.33%;
height:33.33%;
margin:0;
padding:0;
float:left;
}
.HomePortfolioRight {
width:33.33%;
height:33.33%;
margin:0;
padding:0;
float:left;
}