Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 155 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

CSS Guru's please offer sugg.

Thread title: CSS Guru's please offer sugg.
Closed Thread    
    Thread tools Search this thread Display Modes  
04-15-2005, 05:59 AM
#1
mmorales is offline mmorales
Status: Senior Member
Join date: Jul 2004
Location: Vegas
Expertise:
Software:
 
Posts: 929
iTrader: 1 / 100%
 

mmorales is on a distinguished road

Send a message via AIM to mmorales

  Old  CSS Guru's please offer sugg.

Hey guys,

Anyone want to share a code for a div that is a certain LxW, that will ALWAYS stay 10 pixels from the right edge of the browser window (no the website margin). Also vertically centered from top of the browser window edge to the bottom edge. So that whenever I scroll through a page the div (which will hold a menu) will move over the site easily without the browser 'out scrolling' it. Not sure if you guys got that. Let me know if you need an elaboration..

basically a menu that sticks with the center of the browser window (not page design).

04-15-2005, 02:50 PM
#2
Geert is offline Geert
Geert's Avatar
Status: Junior Member
Join date: Mar 2005
Location: Belgium
Expertise:
Software:
 
Posts: 67
iTrader: 0 / 0%
 

Geert is on a distinguished road

Send a message via Skype™ to Geert

  Old

This should do the trick:
Code:
position:fixed;
top:50%;
left:50%;
margin-left:-300px; /* 50% of width */
margin-top:-30px; /* 50% of height */
width:600px;
height:60px;

04-18-2005, 06:28 PM
#3
mmorales is offline mmorales
Status: Senior Member
Join date: Jul 2004
Location: Vegas
Expertise:
Software:
 
Posts: 929
iTrader: 1 / 100%
 

mmorales is on a distinguished road

Send a message via AIM to mmorales

  Old

thanks ill try it this week !

04-19-2005, 11:34 PM
#4
mmorales is offline mmorales
Status: Senior Member
Join date: Jul 2004
Location: Vegas
Expertise:
Software:
 
Posts: 929
iTrader: 1 / 100%
 

mmorales is on a distinguished road

Send a message via AIM to mmorales

  Old  Unsupported

position: fixed seems to be invalid, plus as I copied n paste it did not work properly. Instead a long box was strwwn across my page.

04-20-2005, 05:20 AM
#5
Geert is offline Geert
Geert's Avatar
Status: Junior Member
Join date: Mar 2005
Location: Belgium
Expertise:
Software:
 
Posts: 67
iTrader: 0 / 0%
 

Geert is on a distinguished road

Send a message via Skype™ to Geert

  Old

What browser do you use?

04-21-2005, 12:20 AM
#6
x3knet is offline x3knet
x3knet's Avatar
Status: Freelance God
Join date: Nov 2004
Location: Secaucus, NJ
Expertise:
Software:
 
Posts: 533
iTrader: 0 / 0%
 

x3knet is on a distinguished road

Send a message via AIM to x3knet Send a message via MSN to x3knet Send a message via Yahoo to x3knet

  Old

Doesn't a different resolution on a monitor screw up the alignments also? It's happened with me before...

04-21-2005, 06:34 AM
#7
mmorales is offline mmorales
Status: Senior Member
Join date: Jul 2004
Location: Vegas
Expertise:
Software:
 
Posts: 929
iTrader: 1 / 100%
 

mmorales is on a distinguished road

Send a message via AIM to mmorales

  Old

Mozilla Firefox at 1024x768. If there is no cross platform solution ill just have to make it flaot in the torp right or soemthing..

04-21-2005, 07:23 PM
#8
flez is offline flez
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
 
Posts: 540
iTrader: 0 / 0%
 

flez is on a distinguished road

  Old

position:fixed works for me in Firefox, but IE doesn't support it. So I found this:
http://tagsoup.com/-dev/null-/css/fixed/

04-21-2005, 08:23 PM
#9
angryblue is offline angryblue
Status: Junior Member
Join date: Apr 2005
Location: Louisville, KY
Expertise:
Software:
 
Posts: 30
iTrader: 0 / 0%
 

angryblue is on a distinguished road

  Old

i hate ie.

Closed Thread    


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

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed