Portal block css editing

Post new topic   Reply to topic

View previous topic View next topic Go down

Portal block css editing

Post by Decibel on Thu Mar 27, 2008 8:13 am

Is it possible to add a link for a bar to the top of each portal block? I'm kinda new to css editing and think I found where it goes(blockquote), but not sure how to incorporate it..Thanks in advance.

Decibel
Forumotion Member

Gender:MaleGeminiHorse
Posts : 196
Joined : 30 Nov 2007
Age : 41
Language : english
Location : Canada

Back to top Go down

Re: Portal block css editing

Post by Jalokim on Thu Mar 27, 2008 10:13 am

Its not block quote! that I am certain of
. the CSS editing of the portal block will effect every one of your portal blocks.

in your CSS locate;
Code:
/* Modules-------------------------------------------------*/
.module {
margin-bottom: 4px;
padding: 0 10px;
background-image: url('URL of bar');
background-repeat: repeat-x;
background-color: color;
color: text color;


just add the image url script and change the image info

Jalokim
Graphic Designer
Graphic Designer

Gender:MaleCancerSnake
Posts : 837
Joined : 04 Aug 2007
Age : 18
Language : English,Polish,French,Afrikaans
Location : Poland

Back to top Go down

Re: Portal block css editing

Post by Decibel on Thu Mar 27, 2008 10:15 am

Ok, i got the image url..what do you mean by changing the image info?

Decibel
Forumotion Member

Gender:MaleGeminiHorse
Posts : 196
Joined : 30 Nov 2007
Age : 41
Language : english
Location : Canada

Back to top Go down

Re: Portal block css editing

Post by Uber Lord on Thu Mar 27, 2008 3:58 pm

Jalokim wrote:
in your CSS locate;
Code:
/* Modules-------------------------------------------------*/
.module {
margin-bottom: 4px;
padding: 0 10px;
background-image: url('URL of bar');
background-repeat: repeat-x;
background-color: color;
color: text color;


just add the image url script and change the image info


He means that find that code in Administration Panel -> Styles -> Colors -> CSS Stylesheet.

Uber Lord
Forumotion Member

Gender:MaleCancerRooster
Posts : 653
Joined : 12 Jan 2008
Age : 14
Language : English
Location : Why Are You Still Reading This?

Back to top Go down

Re: Portal block css editing

Post by Jalokim on Fri Mar 28, 2008 7:57 am

what i mean is that you paste your image url to:
Code:
background-image: url('URL of bar');

set the background color of the portal block at:
Code:
background-color: set color;

and finally set the color of the text on the portal in:
Code:
color: text color;

Jalokim
Graphic Designer
Graphic Designer

Gender:MaleCancerSnake
Posts : 837
Joined : 04 Aug 2007
Age : 18
Language : English,Polish,French,Afrikaans
Location : Poland

Back to top Go down

Re: Portal block css editing

Post by Maxiamento on Fri Mar 28, 2008 10:43 am

ooh interresting is it possible to give evermodule different borders though?

Maxiamento
Forumotion Member

Posts : 185
Joined : 12 Mar 2008
Language : English

Back to top Go down

Re: Portal block css editing

Post by Sunny_D on Fri Mar 28, 2008 8:58 pm

pretty much, but only for those modules that you can edit (this is for example not the case for the Recent Topics or the News module). Edit your module in the Portal Structure site and place the following codes:

<div class="block1" width="100%" height="100%"> at the beginning of the module, and
</div> at the very end of the module so that the whole content is wrapped.

The red part is the class of that modules background. All div's with the same class will get the same background. That means if you want another module to have another background, name it's class "block2", "block3" and so on. Note that a class should always start with a letter.

Now you can go to your CSS ("Styles / Colors / CSS Stylesheet") and enter these codes to the textfield - one for each class:

.module .block1 {background-image:url("IMAGE URL 1")}
.module .block2 {background-image:url("IMAGE URL 2")}
etc...

Smile

Sunny_D
Moderator
Moderator

Gender:MaleAriesBuffalo
Posts : 1654
Joined : 26 Mar 2007
Age : 23
Language : german|english
Location : barely on msn these days. sorry :)

Back to top Go down

Re: Portal block css editing

Post by Jalokim on Sat Mar 29, 2008 4:31 am

^^^ ooooh .... interesting
This is going into my bible of CSS stuff. Thanks sunny

Jalokim
Graphic Designer
Graphic Designer

Gender:MaleCancerSnake
Posts : 837
Joined : 04 Aug 2007
Age : 18
Language : English,Polish,French,Afrikaans
Location : Poland

Back to top Go down

Re: Portal block css editing

Post by Sunny_D on Sat Mar 29, 2008 10:32 am

Very welcome. Wink

Sunny_D
Moderator
Moderator

Gender:MaleAriesBuffalo
Posts : 1654
Joined : 26 Mar 2007
Age : 23
Language : german|english
Location : barely on msn these days. sorry :)

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:

You cannot reply to topics in this forum