Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 08, 2012 07:35 AM by Ruchira
Member
4 Points
6 Posts
Apr 08, 2012 07:09 AM|LINK
After designing a custom logo for my site using Adobe PS, I wanna put it on the top of my site but img src alone does not align the image at the right place. I'm a newbie.
header
226 Points
75 Posts
Apr 08, 2012 07:15 AM|LINK
<link rel="shortcut icon" href="~/favicon.ico"/>
isnt being processed by .net. so href="~/favicon.ico" needs to be an absolute or relative url. ~ isnt treated as your app root.
All-Star
42946 Points
7023 Posts
MVP
Apr 08, 2012 07:35 AM|LINK
Hello,
groomdedz I wanna put it on the top of my site but img src alone does not align the image at the right place.
img src is to set the image source. It does not align the image. To align the image, include the image inside a div and align the div. Like below
<div style="position:absolute"> <img src="image source here"/> </div>
Please 'Mark as Answer' if this post helps you.
groomdedz
Member
4 Points
6 Posts
How to put a logo image in the header?
Apr 08, 2012 07:09 AM|LINK
After designing a custom logo for my site using Adobe PS, I wanna put it on the top of my site but img src alone does not align the image at the right place. I'm a newbie.
header
evello880
Member
226 Points
75 Posts
Re: How to put a logo image in the header?
Apr 08, 2012 07:15 AM|LINK
<link rel="shortcut icon" href="~/favicon.ico"/>
isnt being processed by .net. so href="~/favicon.ico" needs to be an absolute or relative url. ~ isnt treated as your app root.
Ruchira
All-Star
42946 Points
7023 Posts
MVP
Re: How to put a logo image in the header?
Apr 08, 2012 07:35 AM|LINK
Hello,
img src is to set the image source. It does not align the image. To align the image, include the image inside a div and align the div. Like below
header
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.