Adaptive Sites Tips and Tricks - Post...

User 187934 Photo


Senior Advisor
20,267 posts

Post your tips and tricks for adaptive or responsive sites here.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,267 posts

Anchor link only below 490px
I found the need for an anchor link in my css navigation only when viewed below 490px.
HTML
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="services.html">Services</a></li>
<li><a href="about.html" class="selected">About</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a class="hide_mobile" href="main.php">Login</a>
<a class="hide_pc" href="main.php#login">Login</a></li>
</ul>

CSS
/*standard css*/
.hide_pc{
display:none;
}

/*media query*/
@media screen and (max-width: 490px)
{
.hide_mobile {
display:none;
}

.hide_pc {
display:block;
margin:auto;
width:84px;
}
}


And the anchor HTML
<a id="login"></a>
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.