If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Success - IE Left Align in Advanced Poll  XML
Forum Index » Support Forum
Author Message
genie
Newbie
[Avatar]

Joined: 07/07/2009 13:27:06
Messages: 3
Offline

Here is what has FINALLY worked for me in left aligning in Advanced Poll for IE

POLL xxx - Poll.php (page)
-------------------------------------


<?php
/* Include this before your html code */
include_once "poll/poll_cookie.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
td{ text-align:left}

-->
</style>


</head>

<body>


<?php

/* path */
$poll_path = dirname(poll);

require_once $poll_path."/poll/include/config.inc.php";
require_once $poll_path."/poll/include/$POLLDB[class]";
require_once $poll_path."/poll/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new poll();


/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(xxx)) {
echo $php_poll->display_poll(xxx);
}

?>


</body>
</html>
genie
Newbie
[Avatar]

Joined: 07/07/2009 13:27:06
Messages: 3
Offline

To the above css statement in the poll.php page, I've even added a background image to the poll. I am sure I could do a color changed to. I have about 30+ polls running on my site and up until now, they've all had the same black background, but now I can make it do anything.


See the red code above and ad this line under the td line


table {background-image:url(yourimage.gif);}

You can see this done here:

http://justperioddrama.com/
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum