making a banner/image a variable size...

User 2219486 Photo


Registered User
53 posts

Hi, complete newbie here, so I apologies in advance for my lack of knowledge.

If I make a banner in the form of an image for across the top of a webpage, is there a way that I can make it a variable size to adapt to whichever device it is being viewed on? E.g laptop, phone, desktop.. At the moment I only understand how to write in a specific pixel size.

E.g width="700" height="200"

Thanks.
User 187934 Photo


Senior Advisor
20,188 posts

Should be a easy as.
width:100%;
A link to the page would be better so we can give you a more specific answer.
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 2219486 Photo


Registered User
53 posts

Oops. That was a fast learning curve ;) thank you... I can't link to the page as it's not live. I have a temporary VSD site live whilst I learn html and responsive layout designer after that.

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.