dangerous curves ahead (serenitysea) wrote in component_help,
dangerous curves ahead
serenitysea
component_help

  • Mood:

centering issues...

I've been through the tutorials, read through the comments and posts -- hope I haven't missed anything. This is a totally easy question if you're familiar with html, I'm sure (I'm barely proficient) and so I hope I haven't asked anything that everyone's answered many times. *crosses fingers*

For some reason, my banner refuses to center. I'm posting my code behind a cut... I've tried all the coding I know to get it to work and it just won't. Am I just html-challenged? Help!





layerinfo "type" = "user";

set font_size = "small";

set text_post_comment = "do you?";

set page_recent_items = 15;

set text_reply_back = "Read Comments";

set lineheight = 12;

set text_meta_mood = "mood";

set nav_entries_text = "recently";

set second_position = "links_order";

set page_friends_items = 25;

set calendar_inactive = "#23552a";

set view_entry_disabled = true;

set comment_divider = "||";

set text_read_comments = "# don't really care for music";

set entry_fgcolor = "#2e5631";

set text_post_comment_friends = "do you?";

set comp_bgcolor = "#031e03";

set text_meta_music = "music";

set comp_navbar = true;

set header_fgcolor = "#2e5631";

set comp_friends = true;

set entry_link_visited = "#4f8d55";

set font_family = "Trebuchet MS, sans-serif";

set show_recentnav_icons = true;

set icalendar = true;

set text_read_comments_friends = "# don't really care for music";

set nav_text_back = "backward";

set page_background_image = "";

set calendar_active = "#3a7a3b";

set fourth_position = "none";

set nav_calendar_text = "calendar";

set entry_link = "#4f8d59";

set nav_text_forward = "forward";

set entry_bgcolor = "#031e03";

set show_entrynav_icons = true;

set main_bgcolor = "#021705";

set comp_state = "right";

set show_profile = false;

set nav_info_text = "info";

set header_bgcolor = "#072f06";

set show_calendar = true;

set nav_friends_text = "allies";

set comments_bgcolor = "#e5e5e5";

set first_position = "navigation_order";

set third_position = "calendar_order";



function page_layout(Page p) {

var string title = $p->title();

"""

<html>

<head>

<link rel="stylesheet" href="$p.stylesheet_url" type="text/css" />

$p.head_content

<title>$title</title>

</head>

<body>



<table width="100%" height="300" cellspacing="0" cellpadding="0" valign="top">

 <tr valign="top" width="100%">

  <div align="center"><td ><img src="http://img.photobucket.com/albums/v12/sarcasity/journal/serenitysea.png" width="600" height="300" alt="" border="0"></div></td >

<table width="60%" cellspacing="0" cellpadding="0" valign="top" align="center">

<tr valign="top" width="100%">



<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

""";



if ($*comp_state == "left") {

print_my_components($p);

"""

<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

""";

}



print_my_entries($p, $title);

if ($*comp_state == "right") {

"""

<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

""";



print_my_components($p);

}

"""

<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

</tr>

</table>

</body>

</html>

""";

}



function print_profile(Page p) {

print_comp_header("profile");

"""

<table cellspacing="0" cellpadding="0" border="0">

<tr>

<td width="50%" align="center">

</td>

<td align="center"><br /><a href="http://www.livejournal.com/allpics.bml?user=YOUR-USERNAME" alt="View my user icons">$p.journal.default_pic</a></td>

<td width="50%" align="center">

</td>

</tr>



<tr>

<td colspan="3" class="compContent">

<div><b>user:</b> <span class="ljuser" style="white-space:nowrap;"><a href="http://www.livejournal.com/users/YOUR-USERNAME/info"><img src="http://stat.livejournal.com/img/userinfo.gif" alt="userinfo" width="17" height="17" style="vertical-align:bottom; border:0;" /></a><a href="http://www.livejournal.com/users/YOUR-USERNAME"><b>YOUR-USERNAME</b></a></span></div>

</div>

</td>

</tr>

</table>

""";



print_comp_footer();

}



function print_my_entries(Page p, string title) {

"""<td valign="top" width="100%">""";

$p->print_body();

}



Thank you.

It's been taken care of. Thanks!!!
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 3 comments