CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 16th, 2004, 10:46 AM
adiwood adiwood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: bournemouth
Posts: 165 adiwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Links bar moving

Hi Whenever I shrink my window in Ie, the Links bar stays in the same place. You can view this at

http://www.trowbridge-wiltshire.co.uk/newtrowbridge

Code:
	body 		{

			
			background:#CBDEF5;
			margin: 1em auto;
			width: 600px;
			
			
			}

	#leftcontent	{
			margin: 1em auto;
			position: absolute;
			top:100px;
			left:250px;
			width:100px;
			background:#CBDEF5;
			
			}

	#centercontent 	{
			margin: 1em auto;
			width:500px;
			background:#87B4EB;
			color:#ffffff;
			border:2px solid rgb(75,123,211);
   			margin-left: 140px;
   			margin-right:20px;
			}
	
	
	#advertising {
			margin: 1em auto;
			width:500px;
			background:#87B4EB;
			color:#ffffff;
			border:2px solid rgb(75,123,211);
			margin-left:140px;
			margin-right:20px;
		}
		
	#banner 	{
			background:#CBDEF5;
			height:40px;
			padding:5px;
			}
	

	p,h1,pre 	{
			margin:0px 10px 0px 10px;
			}

	h1 		{
			font-size:14px;
			padding-top:10px;
			}

	
	background: #c3c8c3; }
	
	#button ul {
			list-style: none;
			margin: 0;
			padding:0;
			border:;
			}
	
		#button li {
			border-bottom: 1px solid #CBDEF5;
			margin: 0;
			}
	
	
	#button li a {
			display: block;
			padding: 5px 5px 5px 0.5em;
			border: 1px solid #1958b7;
			background-color: #87B4EB;
			color: #fff;
			text-align:center;
			text-decoration: none;
			width: 100%;
			}
	
		html>body #button li a {
			width: auto;
			}
	
		#button li a:hover {
			border: 1px solid #1958b7;
			background-color: #4B7BD3;
			color: #fff;
		}
	
	
		

Reply With Quote
  #2  
Old June 16th, 2004, 10:55 AM
ChiefWigs1982's Avatar
ChiefWigs1982 ChiefWigs1982 is offline
Cunning Linguist
Dev Shed God 10th Plane (9500 - 9999 posts)
 
Join Date: Jul 2003
Location: I used to live at home, now I stay at the house
Posts: 9,920 ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)ChiefWigs1982 User rank is Lieutenant General (80000 - 90000 Reputation Level)  Folding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner FolderFolding Points: 50746 Folding Title: Beginner Folder
Time spent in forums: 3 Months 2 Weeks 6 Days 7 h 15 m 40 sec
Reputation Power: 873
Facebook
Of course it will, you have it poitioned absolutely off the top left of the screen, so it will always stay 100 by 250 from the top left. if you want it fluid, use percentages instead.

<edit>...Plus you've also knackered the code somehow, cos the menu is wrong in FireFox...
__________________
Support requests via PM will be ignored!
Sites: Route of Queue | Sinthetic - Alternative UK Hiphop
Read These: The General Rules Thread | The General FAQ Thread | NEW USERS - How to post a question

Sign up with Matched.co.uk and earn up to £15 per website every month!


Reply With Quote
  #3  
Old June 16th, 2004, 10:56 AM
adiwood adiwood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: bournemouth
Posts: 165 adiwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Oh yeah! duh, im so stupid!

Reply With Quote
  #4  
Old June 16th, 2004, 11:17 AM
adiwood adiwood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: bournemouth
Posts: 165 adiwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
God css is so confusing. Im starting not to like it. As someone discussed here the other day, is it really worth it. I mean yes, it may make data easier to update and stuff, but is the extra work worth it?

I dont have a clue what is wrong with my menu bar in Firefox. Here is th code, and the css can be seen above.

PHP Code:
<div id="button">
<
ul>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/index.php">Home</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/history.php">History</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/future.php">Future</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/stories.php">Your Stories</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/leisure.php">Leisure</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/pub.php">Pub</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/clubbing.php">Clubbing</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/eating.php">Eating</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/takeaways.php">Takeaways</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/hotels.php">Hotels</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/shops.php">Shops</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/business.php">Business</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/photos.php">Photos</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/map.php">Map</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/links.php">Links</a></li>
    <
li><a href="http://www.trowbridge-wiltshire.co.uk/contactus.php">ContactUs</a></li>
    <
li><?php
        
include "copyright.txt";
        
?>
    </li>
</ul>
</div> 


Also I cant get the roblem I wrote about above sorted. IT just wont line up properly.

Reply With Quote
  #5  
Old June 16th, 2004, 11:24 AM
adiwood adiwood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: bournemouth
Posts: 165 adiwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I have got the side panel sorted, an now it can be viewed in 800x600 ut what about the side panel in firefox?

Last edited by adiwood : June 16th, 2004 at 11:32 AM.

Reply With Quote
  #6  
Old June 16th, 2004, 12:33 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 10
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
This is what it looks like in FireFox
Attached Images
File Type: jpg screenshot.jpg (199.4 KB, 273 views)

Reply With Quote
  #7  
Old June 16th, 2004, 01:11 PM
adiwood adiwood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: bournemouth
Posts: 165 adiwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
I know that, i dont iknow what is wrong though!!!

Reply With Quote
  #8  
Old June 16th, 2004, 01:32 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 10
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
oopsie, looks like your link died?

Reply With Quote
  #9  
Old June 16th, 2004, 01:53 PM
adiwood adiwood is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: bournemouth
Posts: 165 adiwood User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
All changed! Was in the middle of sorting my server!

Reply With Quote
  #10  
Old June 16th, 2004, 02:23 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
OK. I played with this some. I don't recall all the changes made. This is basically just cleaned up up and redundancies removed. note that #leftcontent has two variations, float and absolute. Commment one or the other. The #centercontent was changed from absolute to static positioning. I later changed it to relative to work around indeterminate IE bugs.

The html remains the same either way.

I wrapped the whole thing in a container div. Moz didn't need it, but IE is twitchy without it.

You may need to play with top, left, margin, etc., but don't expect pixel perfection from one OS or browser to the other.

cheers,

gary
Attached Files
File Type: txt add.css.txt (1.4 KB, 243 views)
File Type: txt trow.html.txt (2.8 KB, 133 views)
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Reply With Quote
  #11  
Old June 16th, 2004, 02:37 PM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,674 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 15 h 15 m 50 sec
Reputation Power: 687
Just saw your revision since you got the site back up. It still looks like s——t in Moz/Firefox. You really should use Moz or Firefox as your main testbed. It is the most standards compliant browser available. IE is among the worst. As you get things working in Moz, you can apply the hacks IE needs to appear to work right. Going the other way will make you crazy.

cheers,

gary

Reply With Quote
  #12  
Old June 16th, 2004, 02:41 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861 1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level)1beb User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 32 m 12 sec
Reputation Power: 10
Send a message via ICQ to 1beb Send a message via AIM to 1beb Send a message via MSN to 1beb Send a message via Yahoo to 1beb
You can leave the absolute positioning, however, you haven't properly specified the height of the #header element...

I think it's supposed to be

Code:
 height:100px;
 

Whereas you have it specified as 10px

Reply With Quote
  #13  
Old June 16th, 2004, 02:55 PM
1beb's Avatar
1beb 1beb is offline
This tagline is not long enoug
Dev Shed Novice (500 - 999 posts)
 
Join Date: Aug 2003
Location: Toronto, ON Canada! I AM CANADIAN
Posts: 861