473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

ok,if theres a god of css, i'll pray!

Hi yet again,
first can I say a big load of thanks to everyone who's replyed to my posts
so far, I *think* this should be the last.

I've got the page looking practically perfect in FF but in IE the leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and this
fixs it for IE but in FF the div disapears of the page.

So,
a) is there something i've missed with the posistioning of the leftcell div
?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?

TIA

Paul

--
http://www.paulwatt.info
Apr 5 '06 #1
12 1593

"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:49************@individual.net...
Hi yet again,
first can I say a big load of thanks to everyone who's replyed to my posts
so far, I *think* this should be the last.

I've got the page looking practically perfect in FF but in IE the leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and
this fixs it for IE but in FF the div disapears of the page.

So,
a) is there something i've missed with the posistioning of the leftcell
div ?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?


Ooops forgot the URL: http://www.paulwatt.info/test/turn/ .
http://www.paulwatt.info/test/turn/css/turnlayout.css
Apr 5 '06 #2
And lo, Paul Watt didst speak in
alt.html,alt.http://www.webmaster,comp.infosystem...g.stylesheets:
"Paul Watt" wrote...
I've got the page looking practically perfect in FF but in IE the
leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and
this fixs it for IE but in FF the div disapears of the page.

So,
a) is there something i've missed with the posistioning of the leftcell
div ?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?


Ooops forgot the URL: http://www.paulwatt.info/test/turn/ .
http://www.paulwatt.info/test/turn/css/turnlayout.css


Paul, this is not a FF problem, it's a MSIE problem, since it looks just
fine in Opera as well. If you must hack, hack it for MSIE, not FF.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#search - Orca Search: Full-featured
spider and site-search engine
Apr 5 '06 #3

"Paul Watt" <pa**********@wattio.freeserve.co.uk> wrote in message
news:49************@individual.net...
Hi yet again,
first can I say a big load of thanks to everyone who's replyed to my posts
so far, I *think* this should be the last.

I've got the page looking practically perfect in FF but in IE the leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and
this fixs it for IE but in FF the div disapears of the page.

So,
a) is there something i've missed with the posistioning of the leftcell
div ?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?


try floating the menu section to the left
Apr 5 '06 #4

"GreyWyvern" <sp**@greywyvern.com> wrote in message
news:op***************@news.nas.net...
And lo, Paul Watt didst speak in
alt.html,alt.http://www.webmaster,comp.infosystem...g.stylesheets:
"Paul Watt" wrote...
I've got the page looking practically perfect in FF but in IE the
leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and
this fixs it for IE but in FF the div disapears of the page.

So,
a) is there something i've missed with the posistioning of the leftcell
div ?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?


Ooops forgot the URL: http://www.paulwatt.info/test/turn/ .
http://www.paulwatt.info/test/turn/css/turnlayout.css


Paul, this is not a FF problem, it's a MSIE problem, since it looks just
fine in Opera as well. If you must hack, hack it for MSIE, not FF.

Grey


Hi Grey,

Why cant everyone use firefox??
Is there a hack that will allow me have a statement in the stylesheet that
all other browsers will ignore and only be visible for MSIE? All I need is a
margin-left:-255px statement and all my worries will be gone.

cheers

Paul
Apr 5 '06 #5
And lo, Paul Watt didst speak in
alt.html,alt.http://www.webmaster,comp.infosystem...g.stylesheets:
Hi Grey,

Why cant everyone use firefox??
Because some of us use Opera :P
Is there a hack that will allow me have a statement in the stylesheet
that
all other browsers will ignore and only be visible for MSIE? All I need
is a
margin-left:-255px statement and all my worries will be gone.


Look up "MSIE conditional comments" and serve MSIE an additional
stylesheet.

Grey

--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#search - Orca Search: Full-featured
spider and site-search engine
Apr 5 '06 #6
Is there a hack that will allow me have a statement in the stylesheet that
all other browsers will ignore and only be visible for MSIE? All I need is
a margin-left:-255px statement and all my worries will be gone.


you can write rules like this:

* html .foo
{ margin-left:-255px;
}

IE is the only browser that thinks there is an element above html when it
looks at css rules, so you can use it for stuff you only want IE to use.

--
Jim
Apr 5 '06 #7
Paul Watt wrote:
I've got the page looking practically perfect in FF but in IE the leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and this
fixs it for IE but in FF the div disapears of the page.


Sounds like something I've seen before. Try something like:

* HTML #maincontent { margin-left: -255px; }

It's a hack, and it won't work in IE 7. (But perhaps the big won't appear
in IE 7 anyway? One can but hope.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Apr 5 '06 #8

"Toby Inkster" <us**********@tobyinkster.co.uk> wrote in message
news:sf************@ophelia.g5n.co.uk...
Paul Watt wrote:
I've got the page looking practically perfect in FF but in IE the
leftcell
div covers part of the maincontent div. I tried margin-left:-255px; and
this
fixs it for IE but in FF the div disapears of the page.


Sounds like something I've seen before. Try something like:

* HTML #maincontent { margin-left: -255px; }

It's a hack, and it won't work in IE 7. (But perhaps the big won't appear
in IE 7 anyway? One can but hope.)


Got it sorted. I used the "underscore" hack in the end. _margin-left:-255px;
did the trick

Thanks to all who helped!

Paul
Apr 5 '06 #9
JDS
On Wed, 05 Apr 2006 16:51:30 +0100, Paul Watt wrote:
So,
a) is there something i've missed with the posistioning of the leftcell div
?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?


You already used your last question in an earlier post. Sorry.

--
JDS | je*****@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/

Apr 5 '06 #10

"JDS" <je*****@example.invalid> wrote in message
news:pa****************************@example.invali d...
On Wed, 05 Apr 2006 16:51:30 +0100, Paul Watt wrote:
So,
a) is there something i've missed with the posistioning of the leftcell
div
?
or
b) is there someway of making FF ignore the margin-left selector in the
style sheet?


You already used your last question in an earlier post. Sorry.

I obey no mans rules, not even my own :p
Apr 5 '06 #11
ie measures the box model differently than the others do. ie measures
from outside border to outside border. other browsers do it differently
and the box model ends up smaller in the other browsers.

here is a flash tutorial on how to fix the box model in ie
http://www.idest.com/csshacks/demos.htm

box model hack examples. click on "Chapter 3: Hiding Css From Newer
Browsers"
http://www.idest.com/csshacks/files.htm

also see
http://centricle.com/ref/css/filters/

this might be a bit intense for a newbie to follow
http://css-discuss.incutio.com/?page=BoxModelHack

if you still don't understand it join http://www.cssdiscuss.org/ it's a
css email list. get a throw away email address just for this list.
you'll get about a dozen emails from them maybe more. they help newbies
and professionals.

Apr 8 '06 #12
dw************@gmail.com wrote:
ie measures the box model differently than the others do.


Um, IE6 in standards mode uses the same W3C-standard box model other
browsers do.

You shouldn't be using quirks mode anyway, which does use the IE5x box
model.

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Apr 8 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

53
by: Bill | last post by:
Hello Programmers, I am looking for either Java Script (OR HTML etc) to DEFEAT Pop-up Stoppers e.g It will bring up a window that will LOOK like a Pop-up FEEL like a Pop-up Allow a name and...
8
by: MLH | last post by:
Anybody's solution would be appreciated. Pls, do not pause to write anything for this. I'm not looking for that kind of a handout. I have an idea about how to do it, but I wanted to see if anyone...
4
by: Matthew Bowman | last post by:
I'm in need of some assistance in converting an LL(2) grammar to an LL(1) grammar. I'm having difficulties with this. Note: this is for a school project and the grammar is not my choice. Thanks...
3
by: Genix | last post by:
Has anybody tried to rewrite the whole XML EBNF grammar to LL(1) form? I try to write recursive descent parser...but i have some problems. Can anybody show me LL(1) grammar for XML, something like: ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.