7 Replies - 3312 Views - Last Post: 19 May 2009 - 04:29 AM

#1 J0K3R  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 13
  • View blog
  • Posts: 298
  • Joined: 19-December 08

localhost vs online - CSS

Posted 19 May 2009 - 02:16 AM

ok here is the deal.

I coded a website.

on localhost in IE its fine.
when I uploaded it, certain things didnt work, like

- <a href#></a> tags formatting werent right.
- custom dro pdown menu didnt work, etc.

any Ideas?
Is This A Good Question/Topic? 0
  • +

Replies To: localhost vs online - CSS

#2 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6560
  • View blog
  • Posts: 30,699
  • Joined: 10-May 07

Re: localhost vs online - CSS

Posted 19 May 2009 - 02:17 AM

The location where you uploaded the file to... does it have read access? Can you post the url to the HTML & the CSS files?
Was This Post Helpful? 0
  • +
  • -

#3 J0K3R  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 13
  • View blog
  • Posts: 298
  • Joined: 19-December 08

Re: localhost vs online - CSS

Posted 19 May 2009 - 02:22 AM

http://www.togoto.co.za thats the site.

the bottom horisontal menu must have a drop down menu (the last accommodation button)

and the links in plus is supposed to go bold and white on hover.
Was This Post Helpful? 0
  • +
  • -

#4 J0K3R  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 13
  • View blog
  • Posts: 298
  • Joined: 19-December 08

Re: localhost vs online - CSS

Posted 19 May 2009 - 02:27 AM

I gave the folder with the stylesheet read access still does the same.
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6560
  • View blog
  • Posts: 30,699
  • Joined: 10-May 07

Re: localhost vs online - CSS

Posted 19 May 2009 - 02:37 AM

The problem is specific to IE... the drop down works fine in FireFox.
Was This Post Helpful? 0
  • +
  • -

#6 J0K3R  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 13
  • View blog
  • Posts: 298
  • Joined: 19-December 08

Re: localhost vs online - CSS

Posted 19 May 2009 - 02:45 AM

the dropdown works fine in IE aswell on localhost...
When I uploaded it to the server, boom. Not working.

I double checked my files aswell. it is the right ones.
Was This Post Helpful? 0
  • +
  • -

#7 Toxicterror  Icon User is offline

  • blub

Reputation: 15
  • View blog
  • Posts: 687
  • Joined: 10-March 09

Re: localhost vs online - CSS

Posted 19 May 2009 - 04:19 AM

the dropdown works perfectly in Firefox 3.0.10 (Flash deactivated)
Attached Image

and as you said it doesnt show up in IE 6
Attached Image

how did you do the javascript part?
could it be that you used javascript thats not suitable with IE 6?

/*
EDIT:
no has to be, otherwise you wouldnt see it localy either
can you give us that part of code with the drop down? would make it a lot easier to help
*/

...and dont ask me any questions about javascript, i always screw it up everytime ^^

This post has been edited by Toxicterror: 19 May 2009 - 04:22 AM

Was This Post Helpful? 0
  • +
  • -

#8 J0K3R  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 13
  • View blog
  • Posts: 298
  • Joined: 19-December 08

Re: localhost vs online - CSS

Posted 19 May 2009 - 04:29 AM

hi. ye doesnt work in IE7 either.

I dont use javascript with this. Its pure CSS.

HTML:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
							<tr>
								<td class="AltMenu"><a style="color: #FFFFFF" href="?fu=events">Events Calendar</a></td>
								<td class="AltMenu"><a style="color: #FFFFFF" href="?PID=8">Book Reviews</a></td>
								<td class="AltMenu"><a style="color: #FFFFFF" href="?PID=1&fu=Links&gid=13">Links</a></td>
								<td class="AltMenu"><a style="color: #FFFFFF" href="?PID=36">Guest House of The Year</a></td>
								<td class="AltMenu"><a style="color: #FFFFFF" href="?pid=2&fu=Article_Guidelines">Contributions</a></td>
								<td class="AltMenu"><a style="color: #FFFFFF" href="?PID=1&fu=Winners">Accommodation, Regoins & Emergencies</a>
																									<ul class="2nddrop">
																										<li><a href="?PID=29">Guest House Reviews</a></li>
																										<li><a href="?PID=1&fu=Links&gid=4">Regions</a></li>
																										<li><a href="?PID=1&fu=Links&gid=3">Emergencies</a></li>
																									</ul>
								</td>
							</tr>
						</table>



CSS:
.AltMenu
{
	background-color: #165389;
	font-family: Verdana;
	font-size: 8pt;
	color: #FFFFFF;
	font-weight: normal;
	text-align: center;
	vertical-align: middle;
	height: 30px;
}

.AltMenu:hover
{
	background-color: #006AAE;
}

/* BELOW IS FOR 2nd SUB MENU */

.AltMenu ul {
	margin-top:20px;
	margin-left:-275px;
	display:none;
	z-index:3;
	float:none;
	position:absolute;
	background:#165389;
}

.AltMenu li {
	list-style:none;
	width:250px;
	height:20px;
	margin-left:-15px;
	padding-right: 15px;
	padding-top:5px;
	display:block;
}

.AltMenu li:hover {
	background:#006AAE;
}

.AltMenu li a {
	text-decoration:none;
	color:#FFF;
}

.AltMenu:hover ul {
	display:inline;
}

/* 2nd SUB MENU ENDS HERE */




Its just weird that it works perfectly in IE7 on localhost but not on the live server. :blink:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1