Quick Nav:  Online Store   |   Login | Register

How can I set an image on my dnn site as a background on a paragraph?

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
segun
<50 Posts
Posts:44


02/14/2008 8:18 AM  

Hello,

 

   I know this is simple but I just don't get it. I added an inline style to a

tag on my DNN site and set the background image to be  /Portals/0/pda-trial.jpg but it won't display anything. How can I do this?

 

Kind Regards

John Mitchell
Posts:3268


02/14/2008 9:10 AM  
To use CSS for the background of a paragraph element you could do it like this: < p id="paragraph">

#paragraph {
background: url(/portals/0/pda-trial.jpg);
}
segun
<50 Posts
Posts:44


02/14/2008 10:35 AM  

Hi John,

Thanks a lot for this. I think I am getting the whole concept wrong. My question then is, where to I do

#paragraph {
background: url(/portals/0/pda-trial.jpg);
}

in DNN? As you know, when you insert a text/html module and you view the source, it doesn't start from the tag and I know that the css you sent should be in the section.

segun
<50 Posts
Posts:44


02/14/2008 10:37 AM  

Hi John,

Thanks a lot for this. I think I am getting the whole concept wrong. My question then is, where do I add this in DNN?

#paragraph {
background: url(/portals/0/pda-trial.jpg);
}

I know that this should be on the head section of html and I don't know where to add this.

John Mitchell
Posts:3268


02/14/2008 10:39 AM  

You should put it in a css file.  You can add it to the portal.css file by editing the stylesheet in Admin > Site Settings.

segun
<50 Posts
Posts:44


02/14/2008 12:58 PM  

Thanks a lot John. That worked perfectly.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >CSS NavMenu > How can I set an image on my dnn site as a background on a paragraph?



ActiveForums 3.7
Powered by: Snapsis Software