Skrollr menu breaks - html

I am using Skrollr and Skrollr Menu on a website for my senior capstone. I have these divs set up to fade in and fade out in the same location, similar to a slideshow. My problem is that when I click the the prev and next links it jumps back to the top of the page. When I click on them I want it to scroll "down" to the next slide. I have tried using data-menu-top but haven't had any luck using it.
<div class="slideContent" data-900="opacity:0;" data-1200="opacity:1;" data-1300="opacity:0;">
<a name="slide2"></a>
<h2>Step One</h2>
To begin, use your pencil to lightly write the word nice and big in the middle your paper. Make sure that it is written lightly because you are going to erase it later.
<br><br>
<a class="prev" href="#slide1" data-menu-top="#"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide3" data-menu-top="#"><img src="assets/img/arrow_right.png"></a>
</div>
<div class="slideContent" data-1300="opacity:0" data-1600="opacity:1;" data-1700="opacity:0;">
<a name="slide3"></a>
<h2>Step Two</h2>
Next, use your pencil to outline the letters.
<br><br>
<a class="prev" href="#slide2"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide4"><img src="assets/img/arrow_right.png"></a>
</div>
<div class="slideContent" data-1700="opacity:0;" data-2000="opacity:1;" data-2100="opacity:0;">
<a name="slide4"></a>
<h2>Step Three</h2>
Now you get to take your markers and trace the outline that you made with your pencil. Then, you take the eraser and erase the pencil lines so that all that is left is the marker outline.
<br><br>
<a class="prev" href="#slide3"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide5"><img src="assets/img/arrow_right.png"></a>
</div>
<div class="slideContent" data-2100="opacity:0;" data-2400="opacity:1;" data-2500="opacity:0;">
<a name="slide5"></a>
<h2>Step Four</h2>
The next couple steps are what make your letters pop out like it's 3D! Lightly draw a dotted line across your paper, a few inches under your word. Then lightly draw an "X" at the very bottom of your page. This will be your vanishing point.
<br><br>
<a class="prev" href="#slide3"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide5"><img src="assets/img/arrow_right.png"></a>
</div>
<div class="slideContent" data-2500="opacity:0;" data-2800="opacity:1;" data-2900="opacity:0;">
<a name="slide6"></a>
<h2>Step Five</h2>
Now, use your ruler and pencil to draw lines from all the corners on your letters to the Vanishing Point. Remember to draw these lines lightly because we will be tracing and erasing them.
<br><br>
<a class="prev" href="#slide3"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide5"><img src="assets/img/arrow_right.png"></a>
</div>
<div class="slideContent" data-2900="opacity:0;" data-3200="opacity:1;" data-3300="opacity:0;">
<a name="slide7"></a>
<h2>Step Six</h2>
Now we are going to erase many of the lines we just drew but it is important to know which ones to get rid of. At this point erase, only erase the lines underneath the dotted line from Step Five and lines that go through your letters.
<br><br>
<a class="prev" href="#slide3"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide5"><img src="assets/img/arrow_right.png"></a>
</div>
<div class="slideContent" data-3300="opacity:0;" data-3600="opacity:1;" data-3700="opacity:0;">
<a name="slide8"></a>
<h2>Step Seven</h2>
Not all the lines you just drew should go all the way to the dotted line. Pay attention to the direction (horizontal/vertical) of the edge of the letters
<br><br>
<a class="prev" href="#slide3"><img src="assets/img/arrow_left.png"></a>
<a class="next" href="#slide5"><img src="assets/img/arrow_right.png"></a>
</div>

Related

End of file seen and there were open elements, and Unclosed element

I am editing a WordPress widget's HTML.
I copied directly from the original code adding social media links and 1 additional social media section, copied from the first section, and changed only the names and links.
Whenever I checked it I get the following errors:
End of file seen and there were open elements
Unclosed element
See enclosed image.
HTML Errors
Here is the code ( WordPress widget HTML do not require; Doctype, title, header, etc ):
<div class="ce-team">
<figure>
<img src="https://ourfightingspirit.com/wp-content/uploads/2022/03/anthony-headshot-small.png" alt="team">
</figure>
<h3>
Anthony Gigante
</h3>
<h6 class="team-position">host</h6>
<p>
The stories you will hear are people like you and me who have overcome incredible obstacles, succeeded, and at the same time inspiring others.
</p>
<div class="team-socials">
<i class="cl-icon-facebook"></i><i class="cl-icon-instagram"></i>
<i class="cl-icon-instagram"></i><i class="cl-icon-youtube"></i>
<a href="https://www.youtube.com/channel/UCps0blZJBsefbHfxXRpTgvQ">
<i class="cl-icon-you-tube"></i></a>
</div>
I'm sure I'm missing something obvious. Your help is greatly appreciated.
Thank you!
Paula
The problem is that the first DIV is missing closing, Putting the closing DIV tag at the end of the code should fix the problem.
<div class="ce-team">
<figure>
<img
src="https://ourfightingspirit.com/wp-content/uploads/2022/03/anthony-headshot-small.png"
alt="team"
/>
</figure>
<h3>Anthony Gigante</h3>
<h6 class="team-position">host</h6>
<p>
The stories you will hear are people like you and me who have overcome
incredible obstacles, succeeded, and at the same time inspiring others.
</p>
<div class="team-socials">
<a href=" https://ourfightingspirit.com/staff/anthony-gigante">
<i class="cl-icon-facebook"></i
></a>
<a href="Facebook—https://www.facebook.com/OurFightingSpirit">
<i class="cl-icon-instagram"></i
></a>
<a href="https://www.facebook.com/OurFightingSpirit">
<i class="cl-icon-instagram"></i
></a>
<a href="Instagram—https://www.instagram.com/ourfightingsprit/">
<i class="cl-icon-youtube"></i
></a>
<a href="https://www.youtube.com/channel/UCps0blZJBsefbHfxXRpTgvQ">
<i class="cl-icon-you-tube"></i
></a>
</div>
</div>
But closing the DIV is a bit confusing, as there are two possibilities to close the div tag. If the first option doesn't work well, try the following code. This closes the DIV before the second DIV
<div class="ce-team">
<figure>
<img
src="https://ourfightingspirit.com/wp-content/uploads/2022/03/anthony-headshot-small.png"
alt="team"
/>
</figure>
<h3>Anthony Gigante</h3>
<h6 class="team-position">host</h6>
<p>
The stories you will hear are people like you and me who have overcome
incredible obstacles, succeeded, and at the same time inspiring others.
</p>
</div>
<div class="team-socials">
<a href=" https://ourfightingspirit.com/staff/anthony-gigante">
<i class="cl-icon-facebook"></i
></a>
<a href="Facebook—https://www.facebook.com/OurFightingSpirit">
<i class="cl-icon-instagram"></i
></a>
<a href="https://www.facebook.com/OurFightingSpirit">
<i class="cl-icon-instagram"></i
></a>
<a href="Instagram—https://www.instagram.com/ourfightingsprit/">
<i class="cl-icon-youtube"></i
></a>
<a href="https://www.youtube.com/channel/UCps0blZJBsefbHfxXRpTgvQ">
<i class="cl-icon-you-tube"></i
></a>
</div>

WEIRD BEHAVIOUR of LIGHTBOXES

I've just tried the CSS code written by #ongtiffany on codepen.io about lightboxes.
The code is great, but if I use it on a standalone test (follows)
<body>
<a class="lightbox" href="#first">
<img src="https://drive.google.com/uc?export=view&id=1cKXuGQzX3t65NoYEKfuI4wBHwxUM9wjH"/>
</a>
<div class="lightbox-target" id="first">
<img src="https://drive.google.com/uc?export=view&id=1cKXuGQzX3t65NoYEKfuI4wBHwxUM9wjH"/>
<a class="lightbox-close" href="#"></a>
</div>
<a class="lightbox" href="#second">
<img src="https://drive.google.com/uc?export=view&id=1kLe9YXiM2XdgwKkATwkhfk6kzdnKIefi"/>
</a>
<div class="lightbox-target" id="second">
<img src="https://drive.google.com/uc?export=view&id=1kLe9YXiM2XdgwKkATwkhfk6kzdnKIefi"/>
<a class="lightbox-close" href="#"></a>
</div>
</body>
</html>
It leaves me a weird "_" symbol between the two pictures.
Can you see it? Any advice to eliminate it?
And one more question? What could it be a way to get a window closing by pressing the "ESC" key?
Try this
a.lightbox{
text-decoration:none;
}
OUTPUT

Need to make my jquery carousal accessible using tab

Hi I have created a basic jquery carousal. I need to make it accessible using tab, so that it follows sequence like Prev tab, casousal dots, next tab.
<div id="mainDiv">
<div id="buttons">
<
>
</div>
<div onclick ="changeContent()" id="sliderDiv">
<ul tabindex="1" class="slider">
<li>
<h3>Image 1</h3>
<img src="images/1.jpg" alt="Image not found">
</li>
<li>
<h3>Image 2</h3>
<img src="images/2.jpg" alt="Image not found">
</li>
<li>
<h3>Image 3</h3>
<img src="images/3.jpg" alt="Image not found">
</li>
<li>
<h3>Image 4</h3>
<img src="images/4.jpg" alt="Image not found">
</li>
<li>
<h3>Iframe</h3>
<iframe src="testIframe.html"></iframe>
</li>
</ul>
</div>
<br>
<br>
<br>
<div class="carousalDots">
<span class="slickdot" onclick ="changeContent()"></span>
<span class="slickdot" onclick ="changeContent()"></span>
<span class="slickdot" onclick ="changeContent()"></span>
<span class="slickdot" onclick ="changeContent()"></span>
<span class="slickdot" onclick ="changeContent()"></span>
</div>
I tried using tabindex property but it didn't work. Any help will be appreciated :)
There are a few issues with your code. First, the only items that are 'tab'-able are the two tags and the which has a tabindex set. If you want the carousel dots to be focusable, you should try to make them into a more appropriate focusable element. something like:
This will allow the dots to be accessed via the tab key, as well as provide the expected hover cursor state.
For your next comment about the sequence being "Prev tab, casousal dots, next tab", I'd suggest reworking your markup to allow for that flow to happen naturally. It's generally bad practice to hijack the focus order away from the user. If you could move the carousel dots into the same div as the prev/next buttons it'd be ideal. This way it's easier for users to navigate to the controls and it's easier to maintain.

How to align image and download button in css?

Here is my jsfiddle: http://jsfiddle.net/4478bs0L/
I need to place download button underneath of image at left side.
For that, here is my html:
<div><img src="9780143332497.jpg" alt="">
<a href="9780143332497.jpg" class="myButton" download="ss" title="Download">
<img src="/path/to/image" alt="Download">
</a></div>
If i add caption class to the button and set text-align:center; it didn't working.
Can anyone please help me? Thanks in advance.
Option1: Add a <br/> between both images.[Apparently, your button is also an image]. Sometimes the simplest answer is the easiest.
<img src="image1" alt="">
<br/>
<a href="image2" class="myButton" download="ss" title="Download">
<img src="/path/to/image" alt="Download">
</a>
Option 2: enclose your button inside a <div> [ block element]
<div>
<a href="http://s30.postimg.org/b7rdjjkwh/9780143332497.jpg" class="myButton" download="ss" title="Download">
<img src="/path/to/image" style="display:block"alt="Download"/>
</a>
</div>
Option 3: add inline css property display:block to the anchor tag containing your button[inline css would override the myButton class property which is making it appear on the same line]
<a href="http://s30.postimg.org/b7rdjjkwh/9780143332497.jpg" class="myButton" style="display:block;width:60px" download="ss" title="Download">
<img src="/path/to/image" alt="Download">
</a>
Cheers!!
just use a <br> after the image and before the button
<div><img src="9780143332497.jpg" alt="">
<br>
<a href="9780143332497.jpg" class="myButton" download="ss" title="Download">
<img src="/path/to/image" alt="Download">
</a></div>
FIDDLE DEMO
Yes I did it .... implement this code...
<div class="wrap">
<div class="london-olympic">
<h1>Playng To Win</h1>
<span class="span">Author: Saina Nehwal.</span>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<div class="addthis_jumbo_share"></div>
<div><img src="http://s30.postimg.org/b7rdjjkwh/9780143332497.jpg" alt="">
<a style="position:absolute; margin-left: -140px; top: 450px;" href="http://s30.postimg.org/b7rdjjkwh/9780143332497.jpg" class="myButton" download="ss" title="Download">
<img src="/path/to/image" alt="Download">
</a>
</div>
<Br><br>
<p>. . . being a player from India defines who I am. When I play, it's for my parents, my coach, and my country.'</p>
<p>Meet Saina Nehwal-India's star badminton player and World Number 4, Padma Shri and Khel Ratna awardee, the girl who brought laurels to India by winning an Olympic medal at the age of twenty-two. In this fascinating memoir, she talks about her childhood and growing-up years; her relationship with the most important people in her life; the ups and downs of her celebrated career, from district level wins to the Olympics; and the sacrifices needed to succeed in any sport. She also reveals little-known facts and offers a peek into her many avatars-daughter, sister, student, and the regular girl behind the badminton prodigy.</p>
<p>Find out what a typical day in Saina's life is like-rigorous training, a strict diet, and no parties or sleepovers. But it's not all work and no play; Saina loves to shop, eat ice cream (post wins only), and play games on her iPad!</p>
<p>With candid photographs and badminton tips from the pro herself, this book showcases the making of a badminton champ-in her own words.</p>
</div>
</div>
Use this code
<div>
<img src="9780143332497.jpg" alt="">
</div>
<div>
<a href="9780143332497.jpg" class="myButton" download="ss" title="Download">
<img src="/path/to/image" alt="Download">
</a>
</div>

Adding next paragraph/picture in the same line (empty space) not from the new line

I am trying to make a page by only using html , as i am new to html what i tried is
<div id="container" style="width:400px">
<div id="header" style="background-color:#0000;">
<h1 style="margin-bottom:0;">Box Office</h1>
</div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:400px;float:left;">
<p>
<a href="http://www.imdb.com/title/tt1170358/?ref_=hm_cht_t1" target="_blank" >1. The Hobbit: The Desolation of Smaug $31.5M </a>
</p>
<p>
<a href="http://www.imdb.com/title/tt1229340/?ref_=hm_cht_t2" target="_blank" >2. Anchorman 2: The Legend Continues $26.8M </a>
</p>
<p>
<a href="http://www.imdb.com/title/tt2294629/?ref_=hm_cht_t3" target="_blank" >3. Frozen $19.6M </a>
</p>
<p>
<a href="http://www.imdb.com/title/tt1800241/?ref_=hm_cht_t4" target="_blank" >4. American Hustle $19.1M </a>
</p>
<p>
<a href="http://www.imdb.com/title/tt2140373/?ref_=hm_cht_t5" target="_blank" >5. Saving Mr. Banks $9.34M </a>
</p>
</div>
Which make something like this
Now i want to start my next phase in the same flow but i want to start from the empty space after this block like in tha landscape flow , What i need to do so that my next part will start after it , i don't want to use the new line for next thing i want to enter
Reuired output
Now i want that when i start my new block it should start from after the first block like it shuld start from where i write "Now i want this"
Does this solve your problem?
Are you trying to float the 2 container divs side-by-side in landscape?
<div id="container" style="width:400px">
<div id="header" style="background-color:#0000;">
<h1 style="margin-bottom:0;">Box Office</h1>
</div>
<div id="content" style="background-color:#EEEEEE;height:200px;width:600px;float:left;">
<div style='width: 50%;display:inline-block;float:left;'>
<p> 1. The Hobbit: The Desolation of Smaug $31.5M
</p>
<p> 2. Anchorman 2: The Legend Continues $26.8M
</p>
<p> 3. Frozen $19.6M
</p>
<p> 4. American Hustle $19.1M
</p>
<p> 5. Saving Mr. Banks $9.34M
</p>
</div>
<div style='width: 50%;
display:inline-block;
float:left;background:#ddd;height:100%; '>
<h2>Now I want this</h2>
</div>
</div>