First of all Clear the browser cache and try again (CTRL+F5, CTRL+R)
Did you see with the browser developer tools that your styles are getting applied to the divs? Press f12 to invoke them on internet explorer and chrome, install firebug extention for firefox. Is it a inline style or are you referring to an external stylesheet?
If it's an external stylesheet, make sure your path is relative and it's a valid path.
adamturner34
Contributor
3964 Points
999 Posts
CSS works in VS but not in IIS
Feb 21, 2012 12:43 AM|LINK
Ok,
What is going on here. Here is the html:
#wrap
{
width: auto;
}
#passwords
{
display:block;
float: left;
width: 50%;
}
#alerts
{
display:block;
float: right;
width: 50%;
}
The works fine in the visual studio. As soon as I deploy it to IIS on my Win7 machine, the div's are on top of each other instead of side-by-side.Thoughts?adamturner34
Contributor
3964 Points
999 Posts
Re: CSS works in VS but not in IIS
Feb 21, 2012 12:44 AM|LINK
Wow sorry for the formatting problem...what the hell?
Danny Gokey
Member
290 Points
56 Posts
Re: CSS works in VS but not in IIS
Feb 21, 2012 01:28 AM|LINK
Hi,
You should change the width of the password in the css ,when the width is less than the 50% , the alert will folat up in the
browser, becasue the float style only has the left and right, so you can change the width as 60% or 70%( as long as more
than 50%)
hope it helps
Ruchira
All-Star
43056 Points
7040 Posts
MVP
Re: CSS works in VS but not in IIS
Feb 21, 2012 10:29 AM|LINK
Hi,
First of all Clear the browser cache and try again (CTRL+F5, CTRL+R)
Did you see with the browser developer tools that your styles are getting applied to the divs? Press f12 to invoke them on internet explorer and chrome, install firebug extention for firefox. Is it a inline style or are you referring to an external stylesheet? If it's an external stylesheet, make sure your path is relative and it's a valid path.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.AneevJohn
Member
140 Points
52 Posts
Re: CSS works in VS but not in IIS
Feb 21, 2012 10:46 AM|LINK
Hi,
Are you checking it on the same browser???
If yes then clear the cache and reload the page.
Aneev John
adamturner34
Contributor
3964 Points
999 Posts
Re: CSS works in VS but not in IIS
Feb 21, 2012 02:33 PM|LINK
It was a caching issue. I hate when that happens.
Thanks fella's.