CSS Content Problem

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
shollebgd
New Member
New Member
Posts: 3
Joined: Tue Apr 27, 2010 9:33 pm

CSS Content Problem

Post by shollebgd »

Hi everybody.
I created some nice template and style (HTML+CSS), content and some 'global content blocks' in two languages. Problem is to define {content} css part.
I make some HTML div for content and style it in CSS, but problem is that when I create some link, letters are always white and can't change it  :'(
Here is the code

html :

Code: Select all

<div class="sadrzaj--sajta"> {content}
and css:

Code: Select all

.sadrzaj--sajta
{
height: 602px;
left: 173px;
top: 60px;
background-color: transparent;
text-align: justify;
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
color: #3D4B51;
}

a
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
color: #3D4B51;
}

a:link
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
text-decoration: underline;
color: #3D4B51;
}

a:hover, a.hover
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
color: #3D4B51;
text-decoration: underline;
}
Think that is stupid problem  ???
Any ideas?
Thanks for all!
uniqu3

Re: CSS Content Problem

Post by uniqu3 »

Do you have anywhere else in your CSS color for a{} defined or another CSS file attached?

Code: Select all

a
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
color: #3D4B51;
}
This should actually apply for the whole site except if you have links with classes and so on, but i you have defined a{} somewhere in the css after the one above then the lover will take effect.

Maybe a link to the website if online or complete CSS would help us more to find the problem.
shollebgd
New Member
New Member
Posts: 3
Joined: Tue Apr 27, 2010 9:33 pm

Re: CSS Content Problem

Post by shollebgd »

Thanks uniqu3.
I try to define a{} for body tag text, but no luck for that solution.
Also tried with that CSS solution and no working again.

Code: Select all

.sadrzaj--sajta a
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
color: #3D4B51;
}

.sadrzaj--sajta a:link
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
text-decoration: underline;
color: #3D4B51;
}

.sadrzaj--sajta a:hover, a.hover
{
font-family: “Trebuchet MS”, Helvetica, sans-serif;
font-style: normal;
font-size: 18px;
color: #3D4B51;
text-decoration: underline;
}
Just created one div and try to put all {content} in it, but when create some text link in TinyMCE, CSS class .sadrzaj--sajta a:link not work. In GCB CSS working fine.
Sorry, but site is still on my web server  :'(
owr_bgld

Re: CSS Content Problem

Post by owr_bgld »

can you put in a few rows more code before and ofter content?

Maybe it's a problem that the class is inside an div with id

Code: Select all

<div class="sadrzaj--sajta"> {content}
shollebgd
New Member
New Member
Posts: 3
Joined: Tue Apr 27, 2010 9:33 pm

Re: CSS Content Problem

Post by shollebgd »

I use div id exept div class and work like a charm  :D
Thank you owr.
Cheers  ;D
Post Reply

Return to “Layout and Design (CSS & HTML)”