J
JSOUL
I really appreciate the help and I have tried to use the web to find
all sorts of suggestions. Inline doesn't seem to work and I tried it
all over and left the examples in below. While people complain about
the travesty of using tables, I'm finding CSS to be impossible to do
certain things easily and it's not easy to read. All I'm trying to do
is get two "cells" to line up properly. With a table it would be
simple:
<table><tr><td> <img - for image #1> </td><td> Sample Text </tr>
</table>
This yields:
IMG1 Sample Text
Now wasn't that simple? No matter what I do I can't get this done in
css because I keep getting the display vertically. Can drive you
crazy. I get:
IMG1
SampleText
I used the inline tag everywhere to see if it works but it won't.
Here's the code:
in the page.php:
<div id="bannercontainer">
<div id="logoleft"></div>
<div id="bannerright">Sample Text</div>
</div>
in the style.css
#bannercontainer{
width: 773px; /*The width of our layout*/
height: 105px;
background-color: #324580;
display: inline;
}
#logoleft{
width: 773px;
height: 105px;
background: url(../images/logoleft.gif) no-repeat;
display: inline;
}
#bannerright{
width: 485px;
height: 105px;
background-color: #324580;
display: inline;
}
all sorts of suggestions. Inline doesn't seem to work and I tried it
all over and left the examples in below. While people complain about
the travesty of using tables, I'm finding CSS to be impossible to do
certain things easily and it's not easy to read. All I'm trying to do
is get two "cells" to line up properly. With a table it would be
simple:
<table><tr><td> <img - for image #1> </td><td> Sample Text </tr>
</table>
This yields:
IMG1 Sample Text
Now wasn't that simple? No matter what I do I can't get this done in
css because I keep getting the display vertically. Can drive you
crazy. I get:
IMG1
SampleText
I used the inline tag everywhere to see if it works but it won't.
Here's the code:
in the page.php:
<div id="bannercontainer">
<div id="logoleft"></div>
<div id="bannerright">Sample Text</div>
</div>
in the style.css
#bannercontainer{
width: 773px; /*The width of our layout*/
height: 105px;
background-color: #324580;
display: inline;
}
#logoleft{
width: 773px;
height: 105px;
background: url(../images/logoleft.gif) no-repeat;
display: inline;
}
#bannerright{
width: 485px;
height: 105px;
background-color: #324580;
display: inline;
}