Click here to Skip to main content
15,396,793 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: send data Pin
Elham M25-Mar-11 7:05
MemberElham M25-Mar-11 7:05 
GeneralRe: send data Pin
cjoki25-Mar-11 10:02
Membercjoki25-Mar-11 10:02 
GeneralRe: send data Pin
Elham M25-Mar-11 21:17
MemberElham M25-Mar-11 21:17 
GeneralRemove a File Using PHP Pin
Haroon Mughal23-Mar-11 2:35
MemberHaroon Mughal23-Mar-11 2:35 
GeneralRe: Remove a File Using PHP Pin
Joan M30-Mar-11 7:48
professionalJoan M30-Mar-11 7:48 
GeneralPHP Tips By Google Master Pin
Haroon Mughal23-Mar-11 2:33
MemberHaroon Mughal23-Mar-11 2:33 
GeneralPHP performance tips Pin
Haroon Mughal23-Mar-11 2:32
MemberHaroon Mughal23-Mar-11 2:32 
Questioncss and link styles Pin
Joan M22-Mar-11 4:59
professionalJoan M22-Mar-11 4:59 
Hello all,

Trying to get css working here...

Let's say I have a php file.

In that file I have something like:
if ($lang == "AAA"){
  echo('<a href="'.$linkname.'" class="linkidiomaseleccionat">AAAA</a> | ');
}
else {
  echo('<a href="'.$linkname.'" class="linkidioma">AAAA</a> | ');
}


Let's say the CSS file has this inside:
A.linkidiomaseleccionat, A.linkidiomaseleccionat:VISITED, A.linkidiomaseleccionat:ACTIVE, A.linkidiomaseleccionat:FOCUS, A.linkidiomaseleccionat:LINK{
  color: #ff6d00;
  text-decoration: none;
}

A.linkidiomaseleccionat:HOVER{
  color: #ff6d00;
  text-decoration: underline;
}

A.linkidioma, A.linkidioma:VISITED, A.linkidioma:ACTIVE, A.linkidioma:FOCUS, A.linkidioma:LINK{
  color: #FFFFFF;
  text-decoration: none;
}

A.linkidioma:HOVER{
  color: #ff6d00;
  text-decoration: underline;
}

A.linkNF, A.linkNF:VISITED, A.linkNF:ACTIVE, A.linkNF:FOCUS, A.linkNF:LINK{
  color: #ff6d0N;
  text-decoration: none;
}
A.linkNF:HOVER{
  color: #ff6d0N;
  text-decoration: underline;
}

A.linkNU, A.linkNU:VISITED, A.linkNU:ACTIVE, A.linkNU:FOCUS, A.linkNU:LINK{
  color: #FFFFFF;
  text-decoration: none;
}
A.linkNU:HOVER{
  color: #ff6d0N;
  text-decoration: underline;
}


Why on earth if I change the text that assigns the class to my links in the php file I don't get a good result if I'm not using "linkidiomaseleccionat" and "linkidioma"... I've tried to change the styule names to get something more consistent (bad initial design) and now I can't see it working if I change the name for it's counterparts: "linkNF" and "linkNU"...

Any of you could help me with that?

I'm feeling really bad here... I can't get it and I don't understand why changing only the name of the style class prevents it from working properly... Dead | X|

We... thank you in advance!
[www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.

AnswerRe: css and link styles Pin
Luc Pattyn22-Mar-11 5:25
sitebuilderLuc Pattyn22-Mar-11 5:25 
QuestionWhy do images are not shown? Pin
Joan M21-Mar-11 5:43
professionalJoan M21-Mar-11 5:43 
AnswerRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 5:50
sitebuilderLuc Pattyn21-Mar-11 5:50 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 6:10
professionalJoan M21-Mar-11 6:10 
GeneralRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 6:22
sitebuilderLuc Pattyn21-Mar-11 6:22 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 6:22
professionalJoan M21-Mar-11 6:22 
AnswerRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 6:24
sitebuilderLuc Pattyn21-Mar-11 6:24 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 6:47
professionalJoan M21-Mar-11 6:47 
GeneralRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 6:52
sitebuilderLuc Pattyn21-Mar-11 6:52 
GeneralRe: Why do images are not shown? Pin
Joan M21-Mar-11 7:09
professionalJoan M21-Mar-11 7:09 
GeneralRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 7:17
sitebuilderLuc Pattyn21-Mar-11 7:17 
QuestionRe: Why do images are not shown? Pin
Joan M21-Mar-11 7:30
professionalJoan M21-Mar-11 7:30 
AnswerRe: Why do images are not shown? Pin
Luc Pattyn21-Mar-11 7:43
sitebuilderLuc Pattyn21-Mar-11 7:43 
QuestionPHP vs ASP.net Pin
m_7tem20-Mar-11 11:05
Memberm_7tem20-Mar-11 11:05 
AnswerRe: PHP vs ASP.net Pin
Luc Pattyn20-Mar-11 11:34
sitebuilderLuc Pattyn20-Mar-11 11:34 
AnswerRe: PHP vs ASP.net Pin
Pravin Patil, Mumbai20-Mar-11 18:42
MemberPravin Patil, Mumbai20-Mar-11 18:42 
AnswerRe: PHP vs ASP.net Pin
Wayne Gaylard20-Mar-11 23:30
professionalWayne Gaylard20-Mar-11 23:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.