CSS questions
2 posters
Page 1 of 1
CSS questions
can anyone help me out with some info on CSS
I have thris in my template
[code]div.table-title h2, .table-title{
color: red;
font-weight: normal !important;
font-style: normal !important;
font-size:small!important
font-family:"Arial", "verdana","sans-serif";
}[/code]
which set the title of a section
however I would also like to set the color and font of the description of teh section as well
and it would be handy to find out what affects other areas as well
I have thris in my template
[code]div.table-title h2, .table-title{
color: red;
font-weight: normal !important;
font-style: normal !important;
font-size:small!important
font-family:"Arial", "verdana","sans-serif";
}[/code]
which set the title of a section
however I would also like to set the color and font of the description of teh section as well
and it would be handy to find out what affects other areas as well
Re: CSS questions
Hello Flappypaddles,
This should modify the descriptions:
This should modify the descriptions:
- Code:
.forabg .topiclist .row div{
color:#f00;
}
Re: CSS questions
that works a treatSethC1995 wrote:Hello Flappypaddles,
This should modify the descriptions:
- Code:
.forabg .topiclist .row div{
color:#f00;
}
although now I would like to know how to change the appearance of the Last posts as well
and also how to change the position of the text so it flows around the pictures I use for each section
also how do I add a description for each bit of my css code so I know what it does when i come back to it
along the lines of
changes topic heading
changes description
etc etc
I presume there is some character that indicates that the line is not code
Re: CSS questions
This can be used to style the lastposts:
- Code:
li.row dd.lastpost{
/*Properties here*/
}
Re: CSS questions
and thanks againSethC1995 wrote:This can be used to style the lastposts:Comments for CSS are entered as this: /*Comment*/
- Code:
li.row dd.lastpost{
/*Properties here*/
}
I came across the float property when I was looking for clues online and rather liked the fact that you could make the first letter of a paragraph larger than the rest and cover several lines, however when I tried to add it to a forum description it sent the whole forum haywire
is there a way to use it in just teh description?
I realise the code is more HTML than CSS
but when I try to add the code to a sections description it just puts all the text on the left hand side of the page
- Code:
<!DOCTYPE html>
<html>
<head>
<style>
span
{
float:left;
width:0.7em;
font-size:400%;
font-family:algerian,courier;
line-height:80%;
}
</style>
</head>
<body>
<p>
<span>T</span>his is some text.
This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
</p>
<p>
In the paragraph above, the first letter of the text is embedded in a span element.
The span element has a width that is 0.7 times the size of the current font.
The font-size of the span element is 400% (quite large) and the line-height is 80%.
The font of the letter in the span will be in "Algerian".
</p>
</body>
</html>
Re: CSS questions
Well you could leave out the Doctype since its already declared, head, style, and body tags too.
You can use the paragraph tag, but we'll use this for our example:
Example:
You can use the paragraph tag, but we'll use this for our example:
- Code:
<span class="First-Letter">T</span>his is some text.
This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
Example:
- Code:
.First-Letter{
float:left;
width:0.7em;
font-size:400%;
font-family:algerian,courier;
line-height:80%;
}
Re: CSS questions
SethC1995 wrote:Well you could leave out the Doctype since its already declared, head, style, and body tags too.
You can use the paragraph tag, but we'll use this for our example:Above we gave the first letter in the span tags the class "First-Letter" That will allow us to style it specifically through our stylesheet.
- Code:
<span class="First-Letter">T</span>his is some text.
This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
This is some text. This is some text. This is some text.
Example:Doing this will allow us the change any text which are wrapped with span.First-Letter
- Code:
.First-Letter{
float:left;
width:0.7em;
font-size:400%;
font-family:algerian,courier;
line-height:80%;
}
thanks again, however out of that came another question
I have some text I wish to place in small print
- Code:
/* sets small print*/
.small-print{
font-size:75%;
font-family:arial;
line-height:100%;
color= #000000
}
no problem with that at all, works like a dream, but I also want to position it a few cm's from the left margin
I added
- Code:
margin-left:20%;
so I added this
- Code:
/* sets margin*/
.set-margin{
margin-left:20%;
}
- Code:
<span class="set-margin">this is my text.<br> it has more than one line</span>
but unless I add
- Code:
<span class="set-margin">this is my text.<br> <span class="set-margin">it has more than one line</span>
I thought a margin would put all text to a set position even if it ran to more than one line.
Perhaps there is another command I should be using?
Re: CSS questions
Wrap your content with the paragraph tag(<p>) and give it your margin class. It is a block level element like <div>. The block will move while the content inside stays relative to the element position.
Span is inline, and is mainly used to add a hook to something without adding any visual change by itself.
Span is inline, and is mainly used to add a hook to something without adding any visual change by itself.
Re: CSS questions
thanks it has been very helpfulSethC1995 wrote:Wrap your content with the paragraph tag(<p>) and give it your margin class. It is a block level element like <div>. The block will move while the content inside stays relative to the element position.
Span is inline, and is mainly used to add a hook to something without adding any visual change by itself.
is there a css tutorial anywhere which highlights all the various different sections and elements of the forum?
Re: CSS questions
I remember there was this thread for phpbb3:
https://help.forumotion.com/t55167-css-codes-for-customizing-phpbb3-forums
https://help.forumotion.com/t55167-css-codes-for-customizing-phpbb3-forums
Re: CSS questions
thanks again I guess this can be closed now. You have been brilliantSethC1995 wrote:I remember there was this thread for phpbb3:
https://help.forumotion.com/t55167-css-codes-for-customizing-phpbb3-forums
Similar topics
» Questions Regarding Hitskin theme-is there ANY answer to these questions? It has been posted for some time now.
» 2 questions please
» 3 simple questions (2 questions to go)
» I have some questions
» Two questions
» 2 questions please
» 3 simple questions (2 questions to go)
» I have some questions
» Two questions
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum