/    Sign up×
Community /Pin to ProfileBookmark

Layout with Bravenet Content

I want to have the bravenet headlines thing and the today in history thing on my web page side by side. How do I do this, as I have tried all I can think off? The codes are below.

<!– Start Bravenet.com Service Code –>
<!– The following line of code must be on one line, it cannot wrap // –>
<div align=”center”><script language=”JavaScript” src=”http://pub15.bravenet.com/news/headlines.php?usernum=1287988386&cpv=2“>
</script></div>
<!– End Bravenet.com Service Code –>

<!– Start Bravenet.com Service Code –>
<!– The following line of code must be on one line, it cannot wrap // –>
<div align=”center”><script language=”JavaScript” src=”http://pub15.bravenet.com/history/remote.php?usernum=1287988386&cpv=2“>
</script></div>
<!– End Bravenet.com Service Code –>

to post a comment
HTML

10 Comments(s)

Copy linkTweet thisAlerts:
@js_prof_consMar 26.2005 — Find the first <div> tag. Despite the align="center" being nonstandard, I wil ignore it. Add to this div:&lt;div ... [color=blue]style="float:left;"[/color]&gt;The code would look like:[code=html]<div style="float:left;"><script language="JavaScript" src="http://pub15.bravenet.com/news/headlines.php?usernum=1287988386&cpv=2"></script></div>
<div style="float:left;"><script language="JavaScript" src="http://pub15.bravenet.com/history/remote.php?usernum=1287988386&cpv=2"></script></div>[/code]
That should do the trick. To center them, you might need another <div>, but I won't get into that until you reply.
Copy linkTweet thisAlerts:
@phpnoviceMar 26.2005 — Have you actually tried that? My understanding is that once you add the [b]float:left;[/b], the [b]text-align:center;[/b] in the parent container is ignored.
Copy linkTweet thisAlerts:
@js_prof_consMar 26.2005 — Have you actually tried that? My understanding is that once you add the [b]float:left;[/b], the [b]text-align:center;[/b] in the parent container is ignored.[/QUOTE]That was actually the reason I didn't post that, as the problem ensued. As I was working on that, I had no time to edit my post. However, the response you have posted seems to be the solution I too arrived at. Actually, I just realized I have edited my post. Your quote comes from the post before it was tested. 'Twoud be appreciated if you'd care to remove the quote, but leave the point, as it served a purpose.
Copy linkTweet thisAlerts:
@phpnoviceMar 26.2005 — 'Twoud be appreciated if you'd care to remove the quote, but leave the point, as it served a purpose.[/QUOTE]
Done. ?
Copy linkTweet thisAlerts:
@tims15authorMar 27.2005 — I tried using it, but all I got was the first item show and an error message?!
Copy linkTweet thisAlerts:
@js_prof_consMar 27.2005 — I used the exact code in my first reply here. There existed no error, except the display was left aligned, not centered. If there was an error message, it is from the JavaScript linked to, not my code.
Copy linkTweet thisAlerts:
@tims15authorMar 27.2005 — I tried it again but it still didn't work, saying something about a syntax error. Then when I tried it again, without changing anything for some reason it worked!

Would you be able to tell me how to get it centered?
Copy linkTweet thisAlerts:
@js_prof_consMar 27.2005 — My understanding is that once you add the [b]float:left;[/b], the [b]text-align:center;[/b] in the parent container is ignored.[/QUOTE]I've found the reliable phpnovice to be correct once again. You might be able to render a way, but that would be for a CSS expert, not me.
Copy linkTweet thisAlerts:
@phpnoviceMar 28.2005 — ...that would be for a CSS expert, not me.[/QUOTE]
I second that emotion. Until then, this table arrangement will do it:

http://www.webdeveloper.com/forum/showthread.php?t=60388
Copy linkTweet thisAlerts:
@js_prof_consMar 28.2005 — I second that emotion. Until then, this table arrangement will do it:

http://www.webdeveloper.com/forum/showthread.php?t=60388[/QUOTE]
Of course you second it, I quoted you! Just kidding around. Obviously you'd have the reference to that thread, and hopefully it serves well to the original poster.
×

Success!

Help @tims15 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...