|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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;
}
|
|
#2
|
||||
|
||||
|
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! |
|
#3
|
|||
|
|||
|
Oh yeah! duh, im so stupid!
|
|
#4
|
|||
|
|||
|
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:
Also I cant get the roblem I wrote about above sorted. IT just wont line up properly. |
|
#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. |
|
#6
|
||||
|
||||
|
This is what it looks like in FireFox
__________________
The Standards! CSS 2 - CSS 3 - w3c CSS Validator - XHTML 1.1 - HTML 4.01 - w3c (X)HTML Validator - ActionScript Reference Links! Bert's Door and Lock Service | Brandon Erik Bertelsen | TextPattern |
|
#7
|
|||
|
|||
|
I know that, i dont iknow what is wrong though!!!
|
|
#8
|
||||
|
||||
|
oopsie, looks like your link died?
|
|
#9
|
|||
|
|||
|
All changed! Was in the middle of sorting my server!
|
|
#10
|
||||
|
||||
|
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
__________________
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. |
|
#11
|
||||
|
||||
|
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 |
|
#12
|
||||
|
||||
|
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 |
|
#13
|
||||
|