![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Feb 2005
Posts: 74
Rep Power: 4
![]() |
How do I make a fixed window?
How would I make a window a fixed size with css?
oh and maybe someone could take the time to explain how to use relative positioning. Thanks! |
|
|
|
|
|
#2 | ||
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
Quote:
Say i've got a paragraph that appears 200px down the page (because there is other content above or whatever). I can set the position property to relative and then specify it's relative distance using the top, left, bottom, and right properties. Lets say I set the positioning to relative and then specify top as 20px: <p style="position: relative; top: 20px"> Understand? |
||
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2005
Posts: 74
Rep Power: 4
![]() |
thanks, makes sense. So if I had a page like this:
11122222222111 11122222222111 11155333333 11155333333 11155333333 11155333333 5=nav bar 2=header 1=whitespace 3=content I want to position the navigation bar right where it is in relation to the header, which is inthe center of the page I see how I could set the top position f it to be constant,but how would I specify the horizntal position? |
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Well you don't want relative positioning if you know exactly where you want your div or other element to be, in relation to the top-left corner (or bottom-right, or whatever) of the screen. You just use absolute positioning. To position a div 10px from the top of the screen and 20px from the left, no matter of it's placement in the HTML file, just use:
position: absolute; left: 20px; top: 10px; Have fun ![]() |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Feb 2005
Posts: 74
Rep Power: 4
![]() |
cool! Thanks, at least I know what to search uder now.
|
|
|
|
|
|
#6 |
|
Programmer
|
Dunno if you've figured this out yourself, but this is one of the few things I can answer! WHEE!!
This goes up in the header section: <SCRIPT LANGUAGE="JavaScript">
function myvoid()
{}
function CreateChild(CoverLocation)
{
window.open (CoverLocation, 'newWin', 'scrollbars=yes,status=yes,width=600,height=500,resizable=yes');
return false;
}
</SCRIPT>And this is what your link to your new window should look like: <a href="javascript:myvoid()" onClick="CreateChild('gallery/fullcircle.html');" onMouseOver=
"window.status='Full Circle'; return true"><img src="gallery/thumbnails/fc-tn.jpg"></a>(I'm just copying/pasting from my website, so I hope it's legible...if not, I'll be happy to clarify) I think that's all you need... ![]()
__________________
I had a dream that Triumph the Insult Dog owned Microsoft... How...appropriate. Last edited by MonkeyRevolution; Apr 25th, 2005 at 10:18 AM. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|