From 895bcc7531351c71d4a5c0cb5c3221d59c312aad Mon Sep 17 00:00:00 2001 From: megabigbug Date: Thu, 22 Oct 2009 23:10:18 +0200 Subject: dynamic space between previews previews centered --- data/home.html | 16 +++++++++++++++- src/homepage.cpp | 5 +++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/data/home.html b/data/home.html index 893f5d76..53b5a370 100644 --- a/data/home.html +++ b/data/home.html @@ -107,14 +107,28 @@ margin-right: 4px; margin-left: 4px; } + +.favorites{ +text-align: center; +} + /* -------------------------------------------------------- */ /* Thumbnail class */ .thumbnail { text-align: center; -float:left; +display: inline-block; +width:25%; margin-bottom: 7%; cursor: pointer; +min-width:250px; +min-height:192px; +} + +.thumbnail object{ +text-align: center; +width:228px; +height:192px; } /* -------------------------------------------------------- */ diff --git a/src/homepage.cpp b/src/homepage.cpp index 835be043..965bb749 100644 --- a/src/homepage.cpp +++ b/src/homepage.cpp @@ -112,7 +112,7 @@ QString HomePage::fillFavorites() QStringList names = ReKonfig::previewNames(); QStringList urls = ReKonfig::previewUrls(); - QString speed; + QString speed="
"; for(int i=0; i<8; ++i) { speed += "
"; @@ -123,7 +123,8 @@ QString HomePage::fillFavorites() speed += ""; speed += "
"; } - + + speed += "
"; return speed; } -- cgit v1.2.1