Adding a background image in Portal Modules.
3 posters
Page 1 of 1
Adding a background image in Portal Modules.
Hello,
I created a new block with content inside but I wish to fill the background of the module with an image.
I would like to know: How is this coded and what is the possible code to do this?
Here is an example picture, I would like to fill the background behind these pictures with a custom made image.
Chou
I created a new block with content inside but I wish to fill the background of the module with an image.
I would like to know: How is this coded and what is the possible code to do this?
Here is an example picture, I would like to fill the background behind these pictures with a custom made image.
Chou
Chou- Forumember
- Posts : 130
Reputation : 20
Language : English
Re: Adding a background image in Portal Modules.
you can't do that.
the CSs can't do single block backgrounds
if you wanted a background all the portal block would have the same one
the CSs can't do single block backgrounds
if you wanted a background all the portal block would have the same one
Jalokim- Energetic
- Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland
Re: Adding a background image in Portal Modules.
But it is possible to ad html codes in a single block so how would this affect the entire modules?
Chou- Forumember
- Posts : 130
Reputation : 20
Language : English
Re: Adding a background image in Portal Modules.
it won't affect it... but there is not html code that sets images as a background (or maybe i don't know the code)Chou wrote:But it is possible to ad html codes in a single block so how would this affect the entire modules?
background images are done vis CSS and it won't do a single block.only all of them.
Jalokim- Energetic
- Posts : 6113
Reputation : 223
Language : English,Polish,CSS,HTML
Location : Poland
Re: Adding a background image in Portal Modules.
By looking at your forum, I've seen that you created already a class for your module. If this class isn't used for other modules as well, it should work fine (otherwise just use an unique class name or id). Paste the code below into your Custom CSS field in "Styles / Colors / CSS".
.da-pastie-wrap {
background-image: url("http://IMAGE URL")
background-repeat: repeat
}
.da-pastie-wrap {
background-image: url("http://IMAGE URL")
background-repeat: repeat
}
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Adding a background image in Portal Modules.
I did this, copy and paste:
Now how do I name this after the copy and paste?
Now how do I name this after the copy and paste?
Chou- Forumember
- Posts : 130
Reputation : 20
Language : English
Re: Adding a background image in Portal Modules.
That wouldn't matter - it's only a name to identify this block. Though, I made a small mistake in the code, I forgot the semicolons. So use the code below instead - sorry.
.da-pastie-wrap {
background-image: url("http://IMAGE URL");
background-repeat: repeat;
}
.da-pastie-wrap {
background-image: url("http://IMAGE URL");
background-repeat: repeat;
}
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Re: Adding a background image in Portal Modules.
I know Sunny
But I tried it and with no luck, I'm sorry.
I really appreciate the help, guys!!
But I tried it and with no luck, I'm sorry.
I really appreciate the help, guys!!
Chou- Forumember
- Posts : 130
Reputation : 20
Language : English
Re: Adding a background image in Portal Modules.
But I have to say that this should work. See, I've copied a pastie code with the latest category images from DA and have written the code above into the CSS. This is how it turns out:
I have no idea why it doesn't work on your site... maybe try to put the code at the very bottom of your custom CSS field and submit. Probably you have already written code that overwrites the background??
I have no idea why it doesn't work on your site... maybe try to put the code at the very bottom of your custom CSS field and submit. Probably you have already written code that overwrites the background??
zakir321- New Member
- Posts : 0
Reputation : 2
Language : english
Similar topics
» Adding Shortcut menu in the modules
» Adding Background Image Doesn't Work!
» how to put image as background in my portal
» Display only image and background in portal
» adding a background image to nav links, whose online, statistics & possible hover buttons for post reply, quote, etc?
» Adding Background Image Doesn't Work!
» how to put image as background in my portal
» Display only image and background in portal
» adding a background image to nav links, whose online, statistics & possible hover buttons for post reply, quote, etc?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum