Hi everybody. Just a little FYI, I know almost no CSS so if I don’t make any sense, just say so…
I was hoping some of you could tell me how I can make a paragraph sit beside an image–so far I’ve only been able to make the paragraph sit under the image. This paragraph is made like this:
[QUOTE]
<div style=”background-color:#454545; width:300px:><div style=”font-weight:bold;><p>Title</div><br>
Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text</p></div>
I want that paragraph to be on the right side of the image. What do I have to do to make it work?
Thanks everybody!
What is FIRST?
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT[/QUOTE]
What is FIRST?
TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT[/QUOTE]
<i>
</i>.pageTitle {
margin-bottom: 0;
}
.pageTitleDesc {
margin-top: 0;
}
<i>
</i><h3 class="pageTitle">...</h3>
<p class="pageTitleDesc">...</p>
And if that's the way you want all your H3s to be then you can skip the class. I'll often use something like
h3 { margin:0 }
p { margin: 0 0 1em 0 }
So the inter-paragraph spacing comes below each paragraph and they snuggle up to the headers nicely.[/QUOTE]
[CODE]
<div style="background-color: rgb(69, 69, 69); padding-left: 5px; padding-right: 5px; width: 383px; height: auto; float: left;">
<h3 class="pageTitle">Team 847's FIRST spirit</h3>
<div id="regular_text"><p class="pageTitleDesc">Team 847 is definitely one of ....*
*.... the most spirited teams out there.
caution tape. We constructed ties, skirts,[COLOR=Red]</p></div></div>[/COLOR]<img src="index_files/spirit%2520award.jpg" style="border: 0pt none ; padding: 0pt; float: right;" height="127" width="183"><br><!-- continued -->
[COLOR=Red]<div style="background-color: rgb(69, 69, 69); padding-left: 5px; padding-right: 5px; width: 100%; height: auto; float: left;">
<div id="regular_text"><p class="pageTitleDesc">[/COLOR]
<!-- continued -->
head-bands, wigs,
overalls and....* *....which fit in with our theme
perfectly—Robot zone</p></div></div></
[/CODE]
[CODE]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Team 847 PHRED</title>
<style>
<!--
body { width: 700px; height: 100%; padding-top:0; }
-->
</style>
<link rel="stylesheet" type="text/css" href="index_files/css.css"></head>
<body><div align="center">
<table id="container" cellpadding="0" cellspacing="10">
<tbody><tr>
<th colspan="2" id="banner">
<img src="index_files/caution%2520banner.gif" style="border: 0pt none ; width: 696px;" alt=""></th>
</tr>
<tr>
<td colspan="2" id="menu" align="center">
<a href="http://www.team847.com/New/index.htm">Home</a>
<a href="http://www.team847.com/New/first.htm">FIRST</a>
<a href="http://www.team847.com/New/team.htm">Team</a>
<a href="http://www.team847.com/New/robots.htm">Robots</a>
<a href="http://www.team847.com/New/stories.htm">Stories</a>
<a href="http://www.team847.com/New/lego_league">Lego League</a>
<a href="http://www.team847.com/New/resources.htm">Sponsors</a>
<a href="http://www.team847.com/New/pictures.htm">Pictures</a>
<a href="http://team847.proboards32.com/">Forum</a>
</td>
</tr>
<tr>
<td id="page_menu" align="left" valign="top"><div id="page_menu_HL">
<h3 class="pageTitle">FIRST links</h3>
<p class="pageTitleDesc">
<a href="http://www.usfirst.org/">FIRST's site</a><br>
<a href="http://www.legoleague.org/">Lego League</a></p></div>
</td>
<td id="main_contain" align="left" valign="top">
<a href="http://www.usfirst.org/">
<img src="index_files/FIRST%2520logo%2520black.jpg" style="border: 0pt none ; float: left; width: 125px; height: 108px;"></a>
<div style="background-color: rgb(69, 69, 69); padding-left: 5px; padding-right: 5px; width: 100%; height: auto;">
<h3 class="pageTitle">What is FIRST?</h3>
<div id="regular_text"><p class="pageTitleDesc">For Inspiration and Recognition of Science and Technology. FIRST
is made up of teams all over the world although it originated in
the United States starting only with a handful of schools and
students. It is a fun exiting way to learn about robotics, teamwork and
the only place to learn gracious professionalism—acting
professionally and respectfully in a competitive environment.</p></div></div><p>
</p>
<img src="index_files/spirit%2520award.jpg" style="border: 0pt none ; padding: 0pt; float: right;" height="127" width="183">
<div style="background-color: rgb(69, 69, 69); padding-left: 5px; padding-right: 5px; height: auto;">
<h3 class="pageTitle">Team 847's FIRST spirit</h3>
<div id="regular_text"><p class="pageTitleDesc">
Team 847 is definitely one of
the most spirited teams out there. We
were awarded the "spirit award" during the 2005 Pacific Northwest
regional competition for our FIRST spirit and because we cheered like crazy!<br>
In the pit-area we gave away large quantities of buttons and flashers which
were an instant hit. Probably the best thing we handed out was our
caution tape. We constructed ties, skirts,
<br><!-- continued -->
<!-- continued -->
head-bands, wigs,
overalls and any other apparel one could imagine. Everyone
called us "team caution" or "the safety team" which fit in with our theme
perfectly—Robot zone</p></div></div></td>
</tr>
</tbody></table>
</div>
</body></html>
[/Code]
<i>
</i><div>
<h3>FIRST links</h3>
</div>
<div>
<p>
<a href="http://www.usfirst.org/">FIRST's site</a>
<a href="http://www.legoleague.org">Lego League</a>
</p>
</div>
<i>
</i><h3>FIRST links</h3>
<ul>
<li><a href="http://www.usfirst.org/">FIRST's site</a></li>
<li><a href="http://www.legoleague.org">Lego League</a></li>
</ul>
I'd ditch the tables, too.[/QUOTE]CSS layouts are way out of my skills man. I've ordered a CSS book from Amazon.com to help me out though.
OK, so the UL will solve the background problem?[/QUOTE]By itself, no. Along with a little style rework, maybe. I can't really see the problem, not knowing what you expect it to look like, so I don't know. Nothing on the left side looked all that wierd to me. The stuff hanging out of the content to the right was far wierder.
The stuff hanging out of the content to the right was far wierder[/QUOTE]
Don't have Firefox, eh?[/QUOTE]
Jeez that is weird.
[/QUOTE]
If you still wonder what caused that strange effect in Firefox, I can tell you it had to do with the styled DIV you had put to 100% wide. If you remove the width if those Divs then it will look normal in both IE and FF[/QUOTE]
But do try and suck in the css knowledge that Ray gave you[/QUOTE]
0.1.9 — BETA 5.19