It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming HTML Forum

Clipping a Div

Clipping a Div

Postby Joy on Sun Jan 13, 2008 8:24 pm

I inserted a div into my webpage, and the problem is it doesn't appear where I want it on every type of screen. Is there a setting I can use to control that? Or is it just a pain in the butt that I have to deal with.

Help! Thanks
Joy
 
Posts: 20
Joined: Sat Dec 29, 2007 8:06 pm

Postby dflynn on Mon Jan 14, 2008 12:10 am

in your css does it say

position:absolute;

?
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Postby Joy on Mon Jan 14, 2008 12:31 am

It didn't, now it does. Thanks!
Joy
 
Posts: 20
Joined: Sat Dec 29, 2007 8:06 pm

Postby Joy on Mon Jan 21, 2008 2:16 am

Yes. They are set to position absolute... but they are still shifting depending on the browser and depending on the type of screen (widescreen or regular) what should I do?? Help!
Joy
 
Posts: 20
Joined: Sat Dec 29, 2007 8:06 pm

Postby dflynn on Mon Jan 21, 2008 5:20 am

make sure you're not using percentages. Percentages are variables depending on the width of the screen. use absolute values in pixels

Make sure that you put px after the number of pixels too.

ex.

#Layer 1{
position:absolute;
left:110px;
}
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Postby Joy on Mon Jan 21, 2008 3:38 pm

It is in pixels.. got any other ideas?
Joy
 
Posts: 20
Joined: Sat Dec 29, 2007 8:06 pm

Postby dflynn on Tue Jan 22, 2008 12:33 am

if your site is up post a link and I can take a look
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada

Postby Joy on Tue Jan 22, 2008 2:05 am

Joy
 
Posts: 20
Joined: Sat Dec 29, 2007 8:06 pm

Postby dflynn on Tue Jan 22, 2008 7:00 pm

i see here you linked to an external stylesheet.css and have css on the page itself.


Is it possible that your stylesheet.css defines say "Layer1" as well as the css on the page. that may be confusing your browser..

I can't seem to locate your stylesheet on your site so I can't look at it myself
User avatar
dflynn
500+ Club
 
Posts: 860
Joined: Wed Oct 03, 2007 9:06 pm
Location: Guelph, Canada


Who is online

Users browsing this forum: No registered users and 7 guests