The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Question about best size for header logo, Trying to determine best method for logo size to make a flexible des
fenton kennedy
post Oct 31 2014, 02:28 PM
Post #1





Group: Members
Posts: 5
Joined: 31-October 14
Member No.: 21,744



Hi, I am attempting to create a site which will have a flexible design and that can be modified easily for mobile devices. I am a novice (learning as i go).

My question is:
how do i decide what size horizontally to make my logo (logo will take entire width of viewport)

Here is the relevant html code I am using:
CODE

<div id="outerWrapper">
    [b]<div id="title" ><img src="images/company logo.png" alt="Boutique Take Two Logo"width="100%" height="200"></div>[/b]
        <div id="menu">
            <ul class="MenuBarHorizontal">
                <li><a id="m1" href="index.html">HOME </a></li>
            <li><a id="m1" href="specials.html">SPECIALS</a></li>
                <li><a id="m1" href="gallary.html">GALLARY</a></li>
            <li><a id="m1" href="aboutus.html">ABOUT US</a> </li>
                <li><a id="m1" href="contactus.html">CONTACT US</a></li>
            </ul>
        </div>
    </div>
</div>


I currently have the logo placed so that my menu will overlay my logo image as if it was part of my logo.
Here is an image of what my page currently looks like. (I don't have it hosted anywhere yet as it is a work in progress) in the attachment in gif format
Attached Image


thank you for your help and suggestions

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 31 2014, 03:11 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



If you give it a fixed height it will be distorted at most window sizes. I wouldn't do that.

About the physical size of the image I guess it's trial and error. You don't want it so large that it will slow the page down and not so small that it will look too bad when up-sized. What format is it? JPG, GIF, PNG?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 31 2014, 04:28 PM
Post #3


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



I'd use a fixed width for the logo image, and the use a repeating background to fill out the sides in large browser windows.

Or you could split the logo image into two fixed-width parts, with the text part floated left, the ladies floated right, and a repeating background between the floated images in large windows.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Oct 31 2014, 05:10 PM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,731
Joined: 9-August 06
Member No.: 6



I would probably also go for that, but then you need to use min-width or one of the floats will drop in a small window and maybe that isn't desired.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 31 2014, 05:44 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Yet another idea (for newer browsers) is to make the whole logo a background image, then use CSS3 media queries to show different sizes depending on window width.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fenton kennedy
post Oct 31 2014, 07:51 PM
Post #6





Group: Members
Posts: 5
Joined: 31-October 14
Member No.: 21,744



QUOTE(pandy @ Oct 31 2014, 05:11 PM) *

If you give it a fixed height it will be distorted at most window sizes. I wouldn't do that.

About the physical size of the image I guess it's trial and error. You don't want it so large that it will slow the page down and not so small that it will look too bad when up-sized. What format is it? JPG, GIF, PNG?


currently the physical size is 600px wide by 150px high in a png format
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fenton kennedy
post Oct 31 2014, 07:58 PM
Post #7





Group: Members
Posts: 5
Joined: 31-October 14
Member No.: 21,744



QUOTE(Christian J @ Oct 31 2014, 07:44 PM) *

Yet another idea (for newer browsers) is to make the whole logo a background image, then use CSS3 media queries to show different sizes depending on window width.


I like this idea ! Could you provide some sample code for how I would use css3 media queries to do this. Also I have a question regarding using a percentage for width (which I am currently using in my html code) since this seems to work ok when I resize my window size, at least on my computer

My next question would be would using css3 work for smartphones and tablets or do I need different code for these devices.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fenton kennedy
post Oct 31 2014, 08:12 PM
Post #8





Group: Members
Posts: 5
Joined: 31-October 14
Member No.: 21,744



QUOTE(Christian J @ Oct 31 2014, 06:28 PM) *

I'd use a fixed width for the logo image, and the use a repeating background to fill out the sides in large browser windows.

Or you could split the logo image into two fixed-width parts, with the text part floated left, the ladies floated right, and a repeating background between the floated images in large windows.



this is a copy of the logo:
Attached Image

Are you suggesting I split this image in the middle and then create a 1px or 2px width background image which will match the two sides? I can split the image but not sure how to make a repeating background image that would match and don't see how this would benefit me more then just using a 100 % width which will expand to fill large browser windows.

Could you please explain a bit more, I am pretty much a newbie at this
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Frederiek
post Nov 1 2014, 04:33 AM
Post #9


Programming Fanatic
********

Group: Members
Posts: 5,146
Joined: 23-August 06
From: Europe
Member No.: 9



There a lot of talk lately about a good solution for responsive images. There's a new (HTML5) element <picture> in the making that might solve that.

Search for "responsive images".

See also:
http://responsiveimages.org
http://www.d.umn.edu/itss/training/online/...css.html#images

And for media queries:
http://www.d.umn.edu/itss/training/online/...ign/css.html#mq

In any case, watch out that the aspect ratio of the image is preserved, so it doesn't get distorted.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 1 2014, 06:25 AM
Post #10


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(fenton kennedy @ Nov 1 2014, 01:58 AM) *

Also I have a question regarding using a percentage for width (which I am currently using in my html code) since this seems to work ok when I resize my window size, at least on my computer

That should work as long as the image's original width is wider than the window, but if the window is wider the image quality will suffer. You can of course start with a very wide original image, but that increases download size. To make the image keep its aspect ratio, don't give it any height value.

QUOTE
My next question would be would using css3 work for smartphones and tablets or do I need different code for these devices.

Smartphones have good CSS3 support, but due to the smaller screen size of smartphones you may want to use a different layout (larger logo, single content column etc) than on a tablet or desktop monitor.

This is further complicated by the large resolution of many smartphones. You may not always be able to detect a small smartphone screen with media queries, since the latter apply to resolution (not physical screen size), and the smartphone may have the same or higher resolution than a fullsize laptop monitor. (Here's a slightly dated thread on this problem: http://forums.htmlhelp.com/index.php?showtopic=15317 )



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 1 2014, 06:29 AM
Post #11


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



QUOTE(fenton kennedy @ Nov 1 2014, 02:12 AM) *

Are you suggesting I split this image in the middle and then create a 1px or 2px width background image which will match the two sides? I can split the image but not sure how to make a repeating background image that would match and don't see how this would benefit me more then just using a 100 % width which will expand to fill large browser windows.

The difference is that in wide windows, the two halves would display to the left and right in their original size, with the space in the center filled up by the tiling slice.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
fenton kennedy
post Nov 3 2014, 09:57 AM
Post #12





Group: Members
Posts: 5
Joined: 31-October 14
Member No.: 21,744



Thanks to everyone who has posted regarding my question. You have all provided some excellent advise and it is greatly appreciated. After reviewing and reading the info in some of the links provided. I have now begun to realize that this is not an easy task as I first thought.

I am now going to be doing a lot of reading and studying and will probably be asking a lot more questions as I progress in this endeavor.

Kudos to all of you, and your very kind efforts to help someone who was under the mistaken impression that building a website would not be that difficult. Lol, man was I ever wrong

Sincerely,
Fenton Kennedy
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 01:33 PM