Recent Topics

1 Oct 25, 2008 02:59    

My b2evolution Version: Not Entered

Hi all! I am using a modified version of the photoblog skin, which lacks features usually present in most photoblogs (notably, a flogroll). I added a sidebar modelled after other skins, touched a bit of CSS and PHP and voilĂ ! Here you have BITFLOG: www.lalaurette.com.ar/flog

BUT (there's *always* a "but") here is the problem: my modified skin works like a charm in IE7, but it's broken in Opera and Firefox. The main column, you know, is pushed below the sidebar, even when there's plenty of space for them to show side by side.

I am no CSS expert, so I would appreciate someone pointing out what's the problem. I have added, removed, and commented the same CSS lines over and over.

Here is the style.css code:

=========================
/* Designed by François PLANQUE - http://fplanque.net/ */

@import url("../../rsc/css/basic.css"); /* Import basic styles */
@import url("../../rsc/css/img.css"); /* Import standard image styles */
@import url("../../rsc/css/blog_elements.css"); /* Import standard blog elements styles */
@import url("../../rsc/css/forms.css"); /* Import default form styles */
@import url("../../rsc/css/comments.css"); /* Import default comment styles */

body {
padding: 0px;
margin: 0px;
color: #aaa;
font: 84% Arial, Helvetica, sans-serif;
background-color: #666;
}

a {
color: #eee;
text-decoration: none;
}
a:visited {
color: #eee;
}
a:hover {
color: #fff;
text-decoration: underline;
}

div#pageFooter {
padding: 0 0 1ex 0;
}
p.baseline {
text-align: center;
font-size: 84%;
padding: 6ex 0 4ex 0;
margin: 0;
}

div.pageHeader {
padding: 5px;
border-bottom: 1px solid #aaa;
background: #333;
color: #aaa;
}

h1#pageTitle {
font-family: Dina, Fixedsys, "Courier New", Courier, mono;
font-size: 300%;
font-weight: bold;
letter-spacing: 4px;
margin: 0;
padding: 0;
}

div.PageTop ul {
background: #333;
border-bottom: 1px solid #aaa;
margin: 0 1px;
padding: 0;
list-style-type:none;
padding: 5px 0;
}
div.PageTop li {
border-right: 1px solid #aaa;
display: inline;
padding: 5px 1em;
}

div.PageTop a {
font-weight: bold;
text-decoration: none;
}
div.PageTop a.default {
color: #aaa;
}
div.PageTop a.selected,
div.PageTop a.selected:visited {
color: #eee;
}
div.PageTop a:hover {
text-decoration: underline;
color: #fff;
}

/* Styles for main area (left) */
h2 {
margin: 0;
padding: 1ex 0 0 0;
}

/* Styles for posts */
.bPosts {
float:left;
/* width: 820px;*/
margin: 0 auto;
}
div.action_messages {
margin: 0 2ex;
}

.nav_right img
{
vertical-align: top;
}
.nav_right a
{
display: block;
margin: 1ex 0;
float: right;
border: 1px solid #666;
}
.nav_right a:hover
{
border: 1px solid #fff;
}
img.no_nav
{
margin: 1ex 0;
float: right;
border: 1px solid #666;
}

.bPost
{
clear: both;
}
div.image_block img {
background: #fff;
padding: 5px;
border: 1px solid #555;
}
.bDetails {
/* width: 80%;*/
margin: 2em auto;
background: #555;
border: 1px solid #aaa;
}
h3.bTitle {
font-size: 100%;
display:inline;
letter-spacing: 2px;
}
.bText {
margin: 0;
padding: 0 12px;
}
.bSmallHead
{
margin: 0;
padding: 12px 12px 6px 12px;
}
.bSmallPrint
{
margin: 0;
font-size: 84%;
padding: 6px 12px 12px 12px;
}
.action_right
{
font-size: 84%;
float: right;
margin: 0 0 0 1em;
}
.timestamp {
margin: 0 0 0 1em;
font-size: 84%;
}

input.bComment,
textarea.bComment
{
background-color: #eee;
border: 1px solid #ccc;
width: 97%;
padding: 2px;
margin: 0ex;
}
select.bComment /* Used by the profile form */
{
background-color: #eee;
border: 1px solid #ccc;
padding: 1px;
margin: 0ex;
}

.comments_popup {
margin: 1em;
}

table.image_index {
margin: 1ex auto;
}
table.image_index td {
width: 88px;
height: 88px;
background: #555;
text-align: center;
vertical-align: middle;
border: 1px solid #333;
}
table.image_index td:hover {
background: #777;
}

#pageFooter a
{
color: #aaa;
}

.bSideBar {
width: 240px;
float: right;
overflow: hidden;
/* background: #900; */
}
=========================

Thanks in advance!

2 Oct 25, 2008 03:07

uncomment :

.bPosts {
float:left; 
	width: 820px;
margin: 0 auto;

3 Oct 25, 2008 03:39

Thanks a lot! I had to decrease that width to 760 for the column to fit in a 1024x768 display. I don't know why it worked well in IE7 before, however.

Now that you're helping me, how could I modify the code for the flogroll to make it more compact? (they're two nested unordered lists, which I cannot control directly because they come from a Linkblog widget).

Thanks again... and thanks in advance, again, again. :)))

4 Oct 25, 2008 03:45

Mmmh... no, no, something is not right here. Now a HUGE gap appears between the columns in higher resolutions. I suppose it's logical, because I have a column floating left and another floating right... but there are a lot of skins that look the same in various resolutions. I think I need some basic CSS help here. :)

5 Oct 25, 2008 03:46

Maybe an enclosing DIV?

7 Oct 25, 2008 03:57

Well, I chose the only photoblogging skin available, and then started modifying it. My problem was that the gap was in between, I didn't mind if it was at the right (slightly annoying in high resolutions, invisible in low resolutions).

What I did now is put those two columns in an enclosing DIV which is 1000 pixels wide. It... kind of... "works".

Thanks for your prompt answers, tilqicom; you've got me thru this. :)

8 Oct 25, 2008 13:35

all you needed was a sparkle eh.. not at all, glad that u ve solved it, good luck with your b2

9 Oct 29, 2008 21:28

Oh, and by the way: Afwas's plugin is TRULY MAGICAL.


Form is loading...