diff options
| -rw-r--r-- | data/home.html | 16 | ||||
| -rw-r--r-- | 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="<div class=\"favorites\">";      for(int i=0; i<8; ++i)      {          speed += "<div class=\"thumbnail\">"; @@ -123,7 +123,8 @@ QString HomePage::fillFavorites()          speed += "</object>";          speed += "</div>";      } -     + +    speed += "</div>";      return speed;  } | 
