Newbee Posted May 31, 2019 Share Posted May 31, 2019 Hi Given the example found here: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_layout_float How should the html-look like, to create content for Paris and Tokyo as-well? I have tried adding two more <article>-tags, but then the text just appear underneath the "footer-section" I would like to have the "Paris" text replace the "London"-text, when I click the Paris-link, and so on Thanks in advance Link to comment Share on other sites More sharing options...
Funce Posted June 3, 2019 Share Posted June 3, 2019 You could try a variation of this tutorial. You'd need a bit of Javascript to get it as you describe. https://www.w3schools.com/howto/howto_js_tabs.asp Link to comment Share on other sites More sharing options...
dsonesuk Posted June 3, 2019 Share Posted June 3, 2019 Javascript? Not necessarily it can be done with pure CSS https://www.w3schools.com/code/tryit.asp?filename=G4ORVHJLRMH8 Link to comment Share on other sites More sharing options...
Funce Posted June 4, 2019 Share Posted June 4, 2019 Oh yeah, target selectors! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now