?

Log in

No account? Create an account

Previous Entry | Next Entry

1) I'm trying to change the background colors on my sidebars. I got it to change in the left column, but not the right column. Anyone know what I'm doing wrong?

Here's my css code:

/*control strip ------------------------------------------------------------*/

#control-strip {
background-color: #808080;
}
/* variations of sidebar backgrounds */
.layout-wtt #content-inner,
.layout-wt #content-inner { background-image: url(http://pics.livejournal.com/ainabarad/pic/000te8ar.gif);}

.layout-twt #content-inner,
.layout-tw #content-inner { background-image: url(http://pics.livejournal.com/ainabarad/pic/000tf8yq.gif); }

/* Three columns on home pages */
.layout-wtt #content-inner { background-image: url(http://pics.livejournal.com/ainabarad/pic/000tgbwh.gif); }
.layout-twt #content-inner { background-image: url(http://pics.livejournal.com/ainabarad/pic/000thp07.gif); }

2) How do I remove where it says "Previous 10 Entries" displayed over the entries on my recent entries page? I like it at the bottom, but not the top.

Comments

( 5 comments — Leave a comment )
av8rmike
Mar. 20th, 2007 10:50 pm (UTC)
I'm not sure what you're trying to do with all those classes. You only need to override the one you intend to use (.layout-twt #content-inner in your case). Your background for "twt" isn't working, though, because it needs to be on both sides. For example:
http://stat.livejournal.com/voxhtml/cityscape-sf/content-bg-twt.gif
ainabarad
Mar. 21st, 2007 03:43 pm (UTC)
Thank you! I can't believe I completely overlooked the second half of it! LOL Thanks so much!
av8rmike
Mar. 20th, 2007 10:58 pm (UTC)
I forgot the second part.... Edit the RecentPage::print_body() function to remove the first instance of this section:
if($skiplinks != "") {
    println """<div class="stream-header">""";
    println """<p class="prevnext">""";
    println $skiplinks;
    println "</p>";
    println "</div>";
}
ainabarad
Mar. 21st, 2007 03:54 pm (UTC)
I keep getting an error compiling layer. How should I have it typed out? I tried this, but I know I'm doing it wrong:

RecentPage::print_body()
if($skiplinks != "") {
println """<div class="stream-header">""";
println """<p class="prevnext">""";
println $skiplinks;
println "</p>";
println "</div>";
}
av8rmike
Mar. 21st, 2007 06:42 pm (UTC)
No, you need to remove that part I quoted the first time it appears in the function.
function RecentPage::print_body() {
    var string skiplinks = "";
    var string back_url  = $.nav.backward_url;
    var string fore_url  = $.nav.forward_url;
    if($back_url != "" or $fore_url != "") {
        var string url  = "";
        var string text = "";

        if($back_url != "") {
            $url  = $back_url;
            $text = get_plural_phrase($.nav.backward_count, "text_skiplinks_back");
            $skiplinks = $skiplinks + """<a class="prev" href="$url">$text</a>""";
        }

        if($back_url != "" and $fore_url != "") {
            $skiplinks = $skiplinks + " | ";
        }

        if($fore_url != "") {
            $url  = $fore_url;
            $text = get_plural_phrase($.nav.forward_count, "text_skiplinks_forward");
            $skiplinks = $skiplinks + """<a class="next" href="$url">$text</a>""";
        }
    }

    if($skiplinks != "") {
        println """<div class="stream-header">""";
        println """<p class="prevnext">""";
        println $skiplinks;
        println "</p>";
        println "</div>";
    }

    if (not($this isa FriendsPage)) {
        print_sticky();
    }

    foreach var Entry e ($.entries) {
        $this->print_entry($e);
        if ($e->viewer_sees_ebox()) {
            """<div style="margin-top: 20px; margin-bottom: 30px;">""";
            $e->print_ebox();
            "</div>";
        }
    }

    if($skiplinks != "") {
        println """<div class="stream-footer">""";
        println """<p class="prevnext">""";
        println $skiplinks;
        print """ | <a href="#home">Back to Top</a>""";
        println "</p>";
        println "</div>";
    }
}
( 5 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars