Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 10, 2012 02:25 PM by ngokal
Member
132 Points
221 Posts
May 02, 2012 01:51 PM|LINK
Hi,
I currently have the following in _InitLayout.cshtml:
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /> <div id="logindisplay"> @RenderSection("LoginSignupLink", required: false) </div>
In my Index.cshtml, i have :
@{ ViewBag.Title = "Home Page"; } @{ Layout = "~/Views/Shared/_InitLayout.cshtml"; } @section LoginSignupLink { @Html.Partial("_LogOnPartial") @Html.Partial("_SignUpPartial") }
And in my site.css (style sheet), i have :
#logindisplay { font-size: 13px; text-align: right; margin-right: 176px; color: #000000; font-weight: bold; padding:0 0 0 1px; } #logindisplay a:link { color: #000000; text-decoration: underline; font-weight: bold; } #logindisplay a:visited { color: #000000; text-decoration: underline; font-weight: bold; }
However, when the screen moves, these links move with it .. With my menu, this does not happen
All-Star
18647 Points
2647 Posts
May 02, 2012 02:59 PM|LINK
What do you mean "when the screen moves"? Can you elaborate and offer a little more explanation?
May 03, 2012 08:34 AM|LINK
When i re-size the window, the links move around, however, my side banners (for adverts) do not, and neither does my menubar or my header. The Links however, move up and down and are not static like the other objects on the screen
21343 Points
1818 Posts
Microsoft
May 09, 2012 05:12 AM|LINK
Hi
Did you set the css of your menubar? Maybe you missed this.
Regards Young Yang
May 10, 2012 02:25 PM|LINK
Yes i did set the css for menubar .. and that works fine.
any other ideas ?
ngokal
Member
132 Points
221 Posts
HyperLinks are not static when screen size gets modified
May 02, 2012 01:51 PM|LINK
Hi,
I currently have the following in _InitLayout.cshtml:
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /> <div id="logindisplay"> @RenderSection("LoginSignupLink", required: false) </div>In my Index.cshtml, i have :
@{ ViewBag.Title = "Home Page"; } @{ Layout = "~/Views/Shared/_InitLayout.cshtml"; } @section LoginSignupLink { @Html.Partial("_LogOnPartial") @Html.Partial("_SignUpPartial") }And in my site.css (style sheet), i have :
#logindisplay { font-size: 13px; text-align: right; margin-right: 176px; color: #000000; font-weight: bold; padding:0 0 0 1px; } #logindisplay a:link { color: #000000; text-decoration: underline; font-weight: bold; } #logindisplay a:visited { color: #000000; text-decoration: underline; font-weight: bold; }However, when the screen moves, these links move with it .. With my menu, this does not happen
CodeHobo
All-Star
18647 Points
2647 Posts
Re: HyperLinks are not static when screen size gets modified
May 02, 2012 02:59 PM|LINK
What do you mean "when the screen moves"? Can you elaborate and offer a little more explanation?
Blog | Twitter : @Hattan
ngokal
Member
132 Points
221 Posts
Re: HyperLinks are not static when screen size gets modified
May 03, 2012 08:34 AM|LINK
When i re-size the window, the links move around, however, my side banners (for adverts) do not, and neither does my menubar or my header. The Links however, move up and down and are not static like the other objects on the screen
Young Yang -...
All-Star
21343 Points
1818 Posts
Microsoft
Re: HyperLinks are not static when screen size gets modified
May 09, 2012 05:12 AM|LINK
Hi
Did you set the css of your menubar? Maybe you missed this.
Regards
Young Yang
Feedback to us
Develop and promote your apps in Windows Store
ngokal
Member
132 Points
221 Posts
Re: HyperLinks are not static when screen size gets modified
May 10, 2012 02:25 PM|LINK
Hi,
Yes i did set the css for menubar .. and that works fine.
any other ideas ?