Moving text errases image - Post ID...

User 184085 Photo


Ambassador
1,707 posts

given the css:

.background_q {background-image:url('../images/question.png'); background-repeat:no-repeat; }
.indent200 {margin-left:200px; background-color:transparent; }


and the html:

<section id="main-article" class="background_q">
<aside id="aside-box" class="curved">
<article id="event-calendar"><?php include("content/calendar.html"); ?></article>
<article id="server-status"><?php include("content/teamspeak.html"); ?></article>
<article id="vatsim-link"><?php include("content/vatsim.html"); ?></article>
</aside><!-- close aside-box-->
<article><?php include("content/faq.html"); ?></article>
</section>


and

<p class="indent200">The members of Virtual International Flying Club strive to help you in every way possible to make your flight simming experience as enjoyable as possible.</p>
<p class="indent200">Please find the following questions and answers that seem to come up frequently all in one place for you to reference.</p>


renders differently, in Safari it works fine, in IE the portion of the background image beside the paragraph is gone, and in FF the entire background image is gone.

Any suggestions?

Safari
http://i130.photobucket.com/albums/p248/pug2775/coffeecup/ScreenShot008.jpg

IE
http://i130.photobucket.com/albums/p248/pug2775/coffeecup/ScreenShot010.jpg

FF
http://i130.photobucket.com/albums/p248/pug2775/coffeecup/ScreenShot009.jpg
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

A new day, and a new solution, apparently you can not, (yet) add a background the <section> tag, whether you will be able to in the future is anyone's guess so here is me slipping past the leading edge, onto the bleeding edge of HTML5 :)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 122279 Photo


Senior Advisor
14,463 posts
Online Now

I tried this, David, and I was able to first add a bd colour to a section, also a bg image. It looked normal in IE, but inFF it the lines of text seemed to divide both the bg colour and the image in horizontal stripes following the lines of text.

I also tried adding a bg image to an article, and there was no problem with that.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 184085 Photo


Ambassador
1,707 posts

Inger Eik wrote:
I also tried adding a bg image to an article, and there was no problem with that.


Love to see how you did it, as soon as I move the text, the BG image is gone :(

I move with the css

.indent200 {margin-left:200px; }
.background_q {background-image:url('../images/question.png'); background-repeat:no-repeat; }

html

<p class="indent200">The members of Virtual International Flying Club strive to help you in every way possible to make your flight simming experience as enjoyable as possible.</p>

and

<article class="background_q"><?php include("content/faq.html"); ?></article>
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

Although adding a background image to the <article> seems logical to me :)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.