Current location: Hot Scripts Forums » General Web Coding » CSS » Really annoying problem


Really annoying problem

Reply
  #1 (permalink)  
Old 01-31-06, 12:37 PM
xxvatarxx xxvatarxx is offline
Wannabe Coder
 
Join Date: May 2005
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Really annoying problem

Really annoying problem, in IE, and only in IE on certain pages the sidenav appears at the bottom of the page.

This is abviously something to do with the php scripts (well the outputted html )

It happens here:

http://www.crossgeneration.co.uk/gallery

http://www.crossgeneration.co.uk/games

But i don't know whats causing it
If i could work out what was causing it then perhaps i could fix it
Anyone got any ideas, 'cus i sure as hell can't figure it out.

On the games script it did it in both IE and FF but i fixed it for FF.
Reply With Quote
  #2 (permalink)  
Old 01-31-06, 01:05 PM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Seems more like an CSS problem. Try adding this to the #sidebar style:

Code:
vertical-align: top;
Reply With Quote
  #3 (permalink)  
Old 01-31-06, 01:57 PM
Sheepymot's Avatar
Sheepymot Sheepymot is offline
Newbie Coder
 
Join Date: Jan 2006
Location: England
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Wouldn't it make more sense to make it into a table with two columns and include the Navigation bar on the right one?
__________________
PHPGurus - Free PHP Help
Reply With Quote
  #4 (permalink)  
Old 01-31-06, 04:11 PM
xxvatarxx xxvatarxx is offline
Wannabe Coder
 
Join Date: May 2005
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
the vertical align didn't work (assuming i put it in the right place )

just to check where would you put it in here

PHP Code:

/* Layout elements */


/* Fundamentals */

html {
    
background#222 url(../images/whitebg.gif) repeat-x scroll;
    
font0.75em/1.3 VerdanaHelveticaArialSans-serif;
    
text-aligncenter;
}

/* Body container */

body {
    
margin0 auto;
    
padding0;
    
text-alignleft;
    
width700px;
    
background#fff url(../images/whitemainbg.gif) repeat-y;
    
border-left1px solid #000;
    
border-right1px solid #000;
}

/* Links */

a:linka:visited {
    
color#585858;
    
text-decorationunderline;
}

a:hovera:active {
    
color#000000;
    
text-decorationunderline;
}

/* Headings */

h2 {
    
fontnormal 1.9em "Century Gothic"GenevaHelveticaArialSans-serif;
}

h3 {
    
fontnormal 1.6em "Century Gothic"GenevaHelveticaArialSans-serif;
}

/* Lists */

ul {
    
margin-left25px;
    
padding0;
}

li {
    list-
style-typesquare;
}

/* Layout IDs */

/* Header */

#head {
    
width700px;
    
height150px;
}

#head h1 {
    
margin0;
    
padding0;
    
displayblock;
    
width700px;
    
height150px;
    
background-imageurl(../images/whitehead.jpg);
    
text-indent: -10000px;
}

/* Navigation */

#nav {
    
margin0;
    
padding0;
    
width700px;
    
height20px;
}

/* Navigation list */

#nav ul {
    
margin0 0 0 13px;
    
padding0;
}

#nav li {
    
floatleft;
    list-
stylenone none;
    
font-size1.1em;
    
margin0 0 0 2px;
    
padding3px 0;
    
text-transformuppercase;
}

/* Navigation links */

#nav li a:link, #nav li a:visited {
    
margin0;
    
padding3px 0;
    
displayblock;
    
width110px;
    
color#222;
    
background-color#f3f3f3;
    
text-decorationnone;
    
text-aligncenter;
}

#nav li a:hover, #nav li a:active {
    
margin0;
    
padding3px 0;
    
displayblock;
    
width110px;
    
color#111;
    
background-color#f3f3f3;
    
text-decorationunderline overline;
}

/* Span to change colour */

#nav li a:link span, #nav li a:visited span {
    
margin0;
    
padding0;
    
color#5588b5;
    
text-decorationnone;
}

#nav li a:hover span, #nav li a:active span {
    
margin0;
    
padding0;
    
color#5588b5;
    
text-decorationnone;
}

/* Main content */

#main {
    
width450px;
    
padding15px;
    
floatleft;
}

/* Sidebar */

#sidebar {
    
width190px;
    
padding15px;
    
floatright;
}

/* Sidebar list links */

#sidebar ul {
    
margin0;
    
padding0;
}

#sidebar li {
    
margin3px 0 0 0;
    
padding0;
    list-
style-typenone;
}

#sidebar li a:link, #sidebar li a:visited {
    
displayblock;
    
width180px;
    
padding2px 0 2px 5px;
    
background-color#f1f1f1;
    
color#333;
    
text-decorationnone;
}

#sidebar li a:hover, #sidebar li a:active {
    
displayblock;
    
width180px;
    
padding2px 0 2px 5px;
    
background-color#fcfcfc;
    
color#222;
    
text-decorationnone;
}

/* Footer */

#foot {
    
margin0;
    
padding0;
    
text-aligncenter;
    
clearboth;
}

#foot p {
    
margin0;
    
padding20px 0;
    
font-weightbold;

And i'd prefer not to use tables
Reply With Quote
  #5 (permalink)  
Old 01-31-06, 04:16 PM
Sheepymot's Avatar
Sheepymot Sheepymot is offline
Newbie Coder
 
Join Date: Jan 2006
Location: England
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
If you did on the off chance decide to use tables:

Code:
<table cellpadding="5" border="0" width="100%">
<tr>
<td>Blah blah blah</td>
<td>

<table cellpadding="5" border="0" width="100%">
<tr>
<td>my navbar</td>
</tr>
</table>

</td>
</tr>
</table>
I'm sure it'd be easier to do than mess with div ids
__________________
PHPGurus - Free PHP Help
Reply With Quote
  #6 (permalink)  
Old 01-31-06, 04:31 PM
xxvatarxx xxvatarxx is offline
Wannabe Coder
 
Join Date: May 2005
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
I guess if all else fails i could use tables but i would prefer not to, just had a quick go with the table and it pretty much fixed IE (background was out of line) but i can fix that easy probs.

But in ff it was way screwed up, but i think i know why that was too

Will experiment more tomorrow, but in the mean time does anyone know how to do it with the divs
Reply With Quote
  #7 (permalink)  
Old 02-01-06, 03:10 PM
MadDog MadDog is offline
Code Master
 
Join Date: Aug 2003
Posts: 935
Thanks: 0
Thanked 0 Times in 0 Posts
* Topic moved to the correct forum *
__________________
Drew Gauderman
ASP - MSSQL Coder / Buisness Owner / Coder for Hire!
MSN-ICQ-AIM-YIM in Profile

http://www.iportalx.net an easy ASP portal system.
Reply With Quote
  #8 (permalink)  
Old 02-01-06, 03:12 PM
xxvatarxx xxvatarxx is offline
Wannabe Coder
 
Join Date: May 2005
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
* Topic moved to the correct forum *
Sorry i thought it was a php problem as the php scripts were causing the issues
Reply With Quote
  #9 (permalink)  
Old 02-02-06, 10:39 AM
xxvatarxx xxvatarxx is offline
Wannabe Coder
 
Join Date: May 2005
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
hmm the tables won't work unless u use tables for the whole page and i reallt cba doing that, Sure no one knows whats wrong with the divs? or has any ideas or even any links that could help me with my problem?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird mysql_query and Smarty problem Canglan PHP 3 11-15-05 08:49 PM
Download problem lcwei81 PHP 4 09-26-05 01:28 AM
Count problem kasic ASP.NET 1 10-20-04 12:23 AM
Asp and Microsoft Access 2002 problem gop373 ASP 2 10-06-04 09:13 AM
an unusual problem.... fabulosas10 PHP 0 07-16-04 02:03 AM


All times are GMT -5. The time now is 01:46 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.