Stage 2: Making out image to be in the center!
|
Makc666
![]()
Joined: 2003-12-26
Posts: 78 |
Posted: Mon, 2005-03-07 12:11
|
|||
|
================================================ First of all you can make these changes only if you made changes from: After all this changes a single image (screenshot #1) will look like on screenshot #2. Some words before we start. There is block, if you made changes on the link above: #gsAlbumContents {
float: left;
width: 100%;
padding: 0;
background-color: #eee;
}We can put one more line in it: "text-align: center;" and work from this line forward. ================================================ -----[ OPEN ]------------------------------------------------
/themes/veloria/styles/theme.css
-----[ FIND ]------------------------------------------------
.gsSingleImage {
margin: 16px;
}
-----[ REPLACE WITH ]------------------------------------------
.gsSingleImage {
text-align: center;
margin: 16px;
}
-----[ FIND ]------------------------------------------------
.gbTopFlag, .gbBottomFlag {
background-color: #ddd;
margin: 0;
padding: 0;
}
-----[ REPLACE WITH ]------------------------------------------
.gbTopFlag, .gbBottomFlag {
text-align: center;
background-color: #ddd;
margin: 0;
padding: 0;
}
-----[ FIND ]------------------------------------------------
.giInfo {
display: block;
font-size: 0.9em;
color: #888;
margin: 0;
padding: 2px;
list-style: none;
}
-----[ REPLACE WITH ]------------------------------------------
.giInfo {
text-align: left;
display: block;
font-size: 0.9em;
color: #888;
margin: 0;
padding: 2px;
list-style: none;
}
================================================ A: So: On the second screenshot you will see what we get after this little changes.
|
||||


Posts: 14
#gsAlbumContents { float: left; /* not needed */ width: 100%; /* not needed */ padding: 0; background-color: #eee; }I think your layout should work fine with those two lines removed, as albumContents is a block level element and thus will take full available width if no width declaration is given.
Posts: 78
You are not right because G2 first tooks ALL values from
/gallery2/templates/layout.css.php
Then it takes values from (for example):
/gallery2/themes/veloria/styles/theme.css
If G2 find values in:
/gallery2/themes/veloria/styles/theme.css
then G2 overwrite default values from:
/gallery2/templates/layout.css.php
If G2 doesn't find values in:
/gallery2/themes/veloria/styles/theme.css
then G2 takes default values from:
/gallery2/templates/layout.css.php
So in:
/gallery2/themes/veloria/styles/theme.css
code is:
#gsAlbumContents, #gsAdminContents, #gsOtherContents { float: left; width: 78%; }If I don't set code:
#gsAlbumContents { float: left; /* not needed */ width: 100%; /* not needed */ padding: 0; background-color: #eee; }in /gallery2/themes/veloria/styles/theme.css
then G2 will overwrite it with
float: left;
width: 78%;
That it.
Posts: 78
Can some one of moderatores help to make the same in G2 Beta 2
like
-----[ OPEN ]------------------------------------------------ /themes/veloria/styles/theme.css -----[ FIND ]------------------------------------------------ .gsSingleImage { margin: 16px; } -----[ REPLACE WITH ]------------------------------------------ .gsSingleImage { text-align: center; margin: 16px; }I can't find any value for single image in veloria theme in G2 Beta 2.
And I want to move "normal" image to the center.
Help with advise please. :roll: