Related news on site [closed]

1

Hello, I would like to know how I can put related news on my site type I have a session on my site called "POLITICAL NEWS". and the person clicking on the news will see other news about politics below? type: a < section > or < article > "see more" and does more related news appear?

    
asked by anonymous 02.03.2018 / 15:02

2 answers

0

Danilo, now I understand what you want. You can use the css classes and check the desired event. It can be either before: before or after: after. Also, like the example below, use the focus event (: focus).

Check the example below that I found in a brief SOen search. Note that he used only html and css as he liked.

  

Hide Show content-list with only CSS, no javascript used    link

    
06.03.2018 / 16:20
1

You can create an invisible% color that is opened when div in clickar

function myFunction(){

  document.getElementById('divNoticia').style.display = 'block';
  
}
Homem é pego fazer pergunta no site StackOverFlow <a id='readmore' href="#" onclick='myFunction()'>leia mais...</a>

<div id='divNoticia' style='display:none;'>
  <img src="https://cdn-images-1.medium.com/max/1000/1*y48w0QXSXaByvUuQTNloQQ.png" width='200'>
  <p>Como fazer um crud em PHP? tenho esse código já e esta dando erro na linha 5 alguem pode me ajudar?</p>
</div>
    
02.03.2018 / 15:11