Hi
This may not be strictly a php question, but the site is primarily in php. I display jobs from simplyhired and items from ebay partner network. The php scripts that grab the 2 xml feeds are basically the same, using SimpleXML to interpret the raw xml and display the child elements.
The jobs are plain text and they load properly, in a column on the left side of the page. I am just starting with the ebay items, they have a small image plus text and load in a column on the right side of the page. When these ebay items load, the text is too wide. I have tried the images as float:left and align=left with the same result.
After the whole feed loads, the text jerks back to it's width limit of 180px. It is a bit disconcerting. I do not have the fastest connection, that may be part of the issue.
If it is possible to load the feed into a temp file first, or if there is some other php trick to control this process, I would prefer to wait the extra second and print to screen correctly formatted.
Here is how the display is formatted:
The parent page uses include to execute the xml-feed script.
parent div:
<div style="width:180px;font-family:arial;text-align:left;word-wrap:break-word;display:inline;">
item div:
<div style="font-size:11px;margin-top:4px;margin-bottom:4px;float:left;border-bottom:solid 1px #CCCCCC;padding-bottom:4px;text-align:left;">
item:
<a href="'.$viewItemURL.'" target="_blank"><img src="'.$galleryURL.'" alt="'.$title.'" style="float:left;padding-right:10px;border:0px;" /></a><a href="'.$viewItemURL.'" target="_blank"style="text-decoration:none;color:#0000CC;">'.$title.'</a>, Bid: '.$convertedCurrentPrice.', <span style="color:darkgreen;">'.$location.'</span> <a href="'.$viewItemURL.'" target="_blank" style="text-decoration:none;font-weight:bold;color:#0000CC;"> >>view...</a>
The site is healthcarehiring.com, I am in the middle of deploying so it is not yet throughout the site.
Thanks for whatever suggestions there may be.
Mike
This may not be strictly a php question, but the site is primarily in php. I display jobs from simplyhired and items from ebay partner network. The php scripts that grab the 2 xml feeds are basically the same, using SimpleXML to interpret the raw xml and display the child elements.
The jobs are plain text and they load properly, in a column on the left side of the page. I am just starting with the ebay items, they have a small image plus text and load in a column on the right side of the page. When these ebay items load, the text is too wide. I have tried the images as float:left and align=left with the same result.
After the whole feed loads, the text jerks back to it's width limit of 180px. It is a bit disconcerting. I do not have the fastest connection, that may be part of the issue.
If it is possible to load the feed into a temp file first, or if there is some other php trick to control this process, I would prefer to wait the extra second and print to screen correctly formatted.
Here is how the display is formatted:
The parent page uses include to execute the xml-feed script.
parent div:
<div style="width:180px;font-family:arial;text-align:left;word-wrap:break-word;display:inline;">
item div:
<div style="font-size:11px;margin-top:4px;margin-bottom:4px;float:left;border-bottom:solid 1px #CCCCCC;padding-bottom:4px;text-align:left;">
item:
<a href="'.$viewItemURL.'" target="_blank"><img src="'.$galleryURL.'" alt="'.$title.'" style="float:left;padding-right:10px;border:0px;" /></a><a href="'.$viewItemURL.'" target="_blank"style="text-decoration:none;color:#0000CC;">'.$title.'</a>, Bid: '.$convertedCurrentPrice.', <span style="color:darkgreen;">'.$location.'</span> <a href="'.$viewItemURL.'" target="_blank" style="text-decoration:none;font-weight:bold;color:#0000CC;"> >>view...</a>
The site is healthcarehiring.com, I am in the middle of deploying so it is not yet throughout the site.
Thanks for whatever suggestions there may be.
Mike