Related news on the site

Asked

Viewed 82 times

1

hello would like to know how I do to put related news on my website like I have a session on my website called "POLITIC NEWS". and the person when clikar on the news appear other news on politics below? type:a < Section > or< article >"see more" and more related news appears ?

  • Your question is unspecific. Could you detail to help the community answer it?

  • help me please

  • The solution you want is different from @Ulio-Henrique’s answer? Specify.

  • does not have a way to do with html and css no ?

2 answers

1

You can create a div invisible to be opened when clickar in read more..

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>

0


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

Check the example below that I found in a brief search in Soen. Note that it used only html and css as was your wish.

Hide Show content-list with only CSS, no javascript used https://stackoverflow.com/a/17732348/2788478

  • 1

    thank you so much for everything ! I will take a look Aki Valew

Browser other questions tagged

You are not signed in. Login or sign up in order to post.