[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework

CSS and absolute positions

Arne Garvander

4/7/2008 8:46:00 PM

I have an aspx page that use absolute positioning.
Sometimes there is a 15 seconds delay from the time that the text of the
page displayed until all bits and pieces are downloaded to the browser. Until
everthing is down loaded the CSS styles will not br applied and my page looks
very unprofessional for 15 seconds.
I two solutions in mind.
1. Get rid of absolute positions and use tables for positions. The display
will never fail in IE and always fail Firefox and Safari.
2. I most use other features in CSS that I have not yet mastered to make a
cross browser friendly page.
What do you think?


--
Arne Garvander
Certified Geek
Professional Data Dude
6 Answers

gerry

4/7/2008 9:07:00 PM

0

How do you figure that tables will 'always fail Firefox and Safari' ??????
I am neither recommending nor discouraging it but tables are by far your
quickest/safest bet for cross browser layout compatibility.


"Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
news:4BA4BED5-8AD5-4214-B5B5-6FDA5A31C363@microsoft.com...
>I have an aspx page that use absolute positioning.
> Sometimes there is a 15 seconds delay from the time that the text of the
> page displayed until all bits and pieces are downloaded to the browser.
> Until
> everthing is down loaded the CSS styles will not br applied and my page
> looks
> very unprofessional for 15 seconds.
> I two solutions in mind.
> 1. Get rid of absolute positions and use tables for positions. The display
> will never fail in IE and always fail Firefox and Safari.
> 2. I most use other features in CSS that I have not yet mastered to make a
> cross browser friendly page.
> What do you think?
>
>
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude


Arne Garvander

4/7/2008 9:32:00 PM

0

Most of my webpages use tables for positioning. They simply look ugly in
Safari amd Firefox. i.e. https://www.insuranceservicec...
I have seen tables that look nice in Safari, Firefox amd IE.
I don't know why tables sometimes work fine across browsers and sometimes
they do not.
Do you?
--
Arne Garvander
Certified Geek
Professional Data Dude


"gerry" wrote:

> How do you figure that tables will 'always fail Firefox and Safari' ??????
> I am neither recommending nor discouraging it but tables are by far your
> quickest/safest bet for cross browser layout compatibility.
>
>
> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
> news:4BA4BED5-8AD5-4214-B5B5-6FDA5A31C363@microsoft.com...
> >I have an aspx page that use absolute positioning.
> > Sometimes there is a 15 seconds delay from the time that the text of the
> > page displayed until all bits and pieces are downloaded to the browser.
> > Until
> > everthing is down loaded the CSS styles will not br applied and my page
> > looks
> > very unprofessional for 15 seconds.
> > I two solutions in mind.
> > 1. Get rid of absolute positions and use tables for positions. The display
> > will never fail in IE and always fail Firefox and Safari.
> > 2. I most use other features in CSS that I have not yet mastered to make a
> > cross browser friendly page.
> > What do you think?
> >
> >
> > --
> > Arne Garvander
> > Certified Geek
> > Professional Data Dude
>
>
>

gerry

4/7/2008 10:16:00 PM

0

you are right , that look pretty bad in FF.
but I don't see what tables has to do with it - there are no tables in that
markup at all.

By a quick look I would say your problem is that you are trying to use both
css and inline styles to position things. plus you are using ms only
ms_positioning attribute. This is most likely due to trying to do
everything wysisyg in the designer which is only a good idea for closed,
intranet, ms-ie-only type sites.

Designing in/for IE is a big mistake.
Waiting until the page is finished before checking it out in various
browsers is a mistake.


Except for a few exceptions, the only html tag attributes you should be
seeing in your generated page are id , name and class.
Remove all of the inline styles.
Remove proprietary attributes.
Empty your stylesheet and start styling from scratch using only the
stylesheet ( no inline styles ) - one style element at a time making sure
that each facet of your styling works acceptably in all target browsers
before moving on to the next element.

Of course you can go old-school and revert to a table based layout which
will immediately take care most of your styling issues ~100% cross-browser.








"Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
news:D4AFF560-FB4D-4BB2-A283-A489C02D2C83@microsoft.com...
> Most of my webpages use tables for positioning. They simply look ugly in
> Safari amd Firefox. i.e. https://www.insuranceservicec...
> I have seen tables that look nice in Safari, Firefox amd IE.
> I don't know why tables sometimes work fine across browsers and sometimes
> they do not.
> Do you?
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude
>
>
> "gerry" wrote:
>
>> How do you figure that tables will 'always fail Firefox and Safari'
>> ??????
>> I am neither recommending nor discouraging it but tables are by far your
>> quickest/safest bet for cross browser layout compatibility.
>>
>>
>> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in
>> message
>> news:4BA4BED5-8AD5-4214-B5B5-6FDA5A31C363@microsoft.com...
>> >I have an aspx page that use absolute positioning.
>> > Sometimes there is a 15 seconds delay from the time that the text of
>> > the
>> > page displayed until all bits and pieces are downloaded to the browser.
>> > Until
>> > everthing is down loaded the CSS styles will not br applied and my page
>> > looks
>> > very unprofessional for 15 seconds.
>> > I two solutions in mind.
>> > 1. Get rid of absolute positions and use tables for positions. The
>> > display
>> > will never fail in IE and always fail Firefox and Safari.
>> > 2. I most use other features in CSS that I have not yet mastered to
>> > make a
>> > cross browser friendly page.
>> > What do you think?
>> >
>> >
>> > --
>> > Arne Garvander
>> > Certified Geek
>> > Professional Data Dude
>>
>>
>>


Arne Garvander

4/8/2008 1:33:00 PM

0

The following style took care of most of my cross browser problems
* { margin: 0; padding: 0; }
li {
margin-left: 2em;
}

IE has a default margin that is different from Firefox and Safari.
--
Arne Garvander
Certified Geek
Professional Data Dude


"gerry" wrote:

> you are right , that look pretty bad in FF.
> but I don't see what tables has to do with it - there are no tables in that
> markup at all.
>
> By a quick look I would say your problem is that you are trying to use both
> css and inline styles to position things. plus you are using ms only
> ms_positioning attribute. This is most likely due to trying to do
> everything wysisyg in the designer which is only a good idea for closed,
> intranet, ms-ie-only type sites.
>
> Designing in/for IE is a big mistake.
> Waiting until the page is finished before checking it out in various
> browsers is a mistake.
>
>
> Except for a few exceptions, the only html tag attributes you should be
> seeing in your generated page are id , name and class.
> Remove all of the inline styles.
> Remove proprietary attributes.
> Empty your stylesheet and start styling from scratch using only the
> stylesheet ( no inline styles ) - one style element at a time making sure
> that each facet of your styling works acceptably in all target browsers
> before moving on to the next element.
>
> Of course you can go old-school and revert to a table based layout which
> will immediately take care most of your styling issues ~100% cross-browser.
>
>
>
>
>
>
>
>
> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
> news:D4AFF560-FB4D-4BB2-A283-A489C02D2C83@microsoft.com...
> > Most of my webpages use tables for positioning. They simply look ugly in
> > Safari amd Firefox. i.e. https://www.insuranceservicec...
> > I have seen tables that look nice in Safari, Firefox amd IE.
> > I don't know why tables sometimes work fine across browsers and sometimes
> > they do not.
> > Do you?
> > --
> > Arne Garvander
> > Certified Geek
> > Professional Data Dude
> >
> >
> > "gerry" wrote:
> >
> >> How do you figure that tables will 'always fail Firefox and Safari'
> >> ??????
> >> I am neither recommending nor discouraging it but tables are by far your
> >> quickest/safest bet for cross browser layout compatibility.
> >>
> >>
> >> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in
> >> message
> >> news:4BA4BED5-8AD5-4214-B5B5-6FDA5A31C363@microsoft.com...
> >> >I have an aspx page that use absolute positioning.
> >> > Sometimes there is a 15 seconds delay from the time that the text of
> >> > the
> >> > page displayed until all bits and pieces are downloaded to the browser.
> >> > Until
> >> > everthing is down loaded the CSS styles will not br applied and my page
> >> > looks
> >> > very unprofessional for 15 seconds.
> >> > I two solutions in mind.
> >> > 1. Get rid of absolute positions and use tables for positions. The
> >> > display
> >> > will never fail in IE and always fail Firefox and Safari.
> >> > 2. I most use other features in CSS that I have not yet mastered to
> >> > make a
> >> > cross browser friendly page.
> >> > What do you think?
> >> >
> >> >
> >> > --
> >> > Arne Garvander
> >> > Certified Geek
> >> > Professional Data Dude
> >>
> >>
> >>
>
>
>

gerry

4/9/2008 12:10:00 AM

0

ok , if you say so - have you tried browsing this over the internet ? FF &
Opera are minimally better but still pretty bad.



"Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
news:1A215A18-09F2-430A-92DE-298E23FB29A4@microsoft.com...
> The following style took care of most of my cross browser problems
> * { margin: 0; padding: 0; }
> li {
> margin-left: 2em;
> }
>
> IE has a default margin that is different from Firefox and Safari.
> --
> Arne Garvander
> Certified Geek
> Professional Data Dude
>
>
> "gerry" wrote:
>
>> you are right , that look pretty bad in FF.
>> but I don't see what tables has to do with it - there are no tables in
>> that
>> markup at all.
>>
>> By a quick look I would say your problem is that you are trying to use
>> both
>> css and inline styles to position things. plus you are using ms only
>> ms_positioning attribute. This is most likely due to trying to do
>> everything wysisyg in the designer which is only a good idea for closed,
>> intranet, ms-ie-only type sites.
>>
>> Designing in/for IE is a big mistake.
>> Waiting until the page is finished before checking it out in various
>> browsers is a mistake.
>>
>>
>> Except for a few exceptions, the only html tag attributes you should be
>> seeing in your generated page are id , name and class.
>> Remove all of the inline styles.
>> Remove proprietary attributes.
>> Empty your stylesheet and start styling from scratch using only the
>> stylesheet ( no inline styles ) - one style element at a time making sure
>> that each facet of your styling works acceptably in all target browsers
>> before moving on to the next element.
>>
>> Of course you can go old-school and revert to a table based layout which
>> will immediately take care most of your styling issues ~100%
>> cross-browser.
>>
>>
>>
>>
>>
>>
>>
>>
>> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in
>> message
>> news:D4AFF560-FB4D-4BB2-A283-A489C02D2C83@microsoft.com...
>> > Most of my webpages use tables for positioning. They simply look ugly
>> > in
>> > Safari amd Firefox. i.e. https://www.insuranceservicec...
>> > I have seen tables that look nice in Safari, Firefox amd IE.
>> > I don't know why tables sometimes work fine across browsers and
>> > sometimes
>> > they do not.
>> > Do you?
>> > --
>> > Arne Garvander
>> > Certified Geek
>> > Professional Data Dude
>> >
>> >
>> > "gerry" wrote:
>> >
>> >> How do you figure that tables will 'always fail Firefox and Safari'
>> >> ??????
>> >> I am neither recommending nor discouraging it but tables are by far
>> >> your
>> >> quickest/safest bet for cross browser layout compatibility.
>> >>
>> >>
>> >> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in
>> >> message
>> >> news:4BA4BED5-8AD5-4214-B5B5-6FDA5A31C363@microsoft.com...
>> >> >I have an aspx page that use absolute positioning.
>> >> > Sometimes there is a 15 seconds delay from the time that the text of
>> >> > the
>> >> > page displayed until all bits and pieces are downloaded to the
>> >> > browser.
>> >> > Until
>> >> > everthing is down loaded the CSS styles will not br applied and my
>> >> > page
>> >> > looks
>> >> > very unprofessional for 15 seconds.
>> >> > I two solutions in mind.
>> >> > 1. Get rid of absolute positions and use tables for positions. The
>> >> > display
>> >> > will never fail in IE and always fail Firefox and Safari.
>> >> > 2. I most use other features in CSS that I have not yet mastered to
>> >> > make a
>> >> > cross browser friendly page.
>> >> > What do you think?
>> >> >
>> >> >
>> >> > --
>> >> > Arne Garvander
>> >> > Certified Geek
>> >> > Professional Data Dude
>> >>
>> >>
>> >>
>>
>>
>>


Arne Garvander

4/9/2008 1:06:00 PM

0

I have a corporate website. I can not publish at will.
I can only tell what I have found from testing on my private computer.
--
Arne Garvander
Certified Geek
Professional Data Dude


"gerry" wrote:

> ok , if you say so - have you tried browsing this over the internet ? FF &
> Opera are minimally better but still pretty bad.
>
>
>
> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in message
> news:1A215A18-09F2-430A-92DE-298E23FB29A4@microsoft.com...
> > The following style took care of most of my cross browser problems
> > * { margin: 0; padding: 0; }
> > li {
> > margin-left: 2em;
> > }
> >
> > IE has a default margin that is different from Firefox and Safari.
> > --
> > Arne Garvander
> > Certified Geek
> > Professional Data Dude
> >
> >
> > "gerry" wrote:
> >
> >> you are right , that look pretty bad in FF.
> >> but I don't see what tables has to do with it - there are no tables in
> >> that
> >> markup at all.
> >>
> >> By a quick look I would say your problem is that you are trying to use
> >> both
> >> css and inline styles to position things. plus you are using ms only
> >> ms_positioning attribute. This is most likely due to trying to do
> >> everything wysisyg in the designer which is only a good idea for closed,
> >> intranet, ms-ie-only type sites.
> >>
> >> Designing in/for IE is a big mistake.
> >> Waiting until the page is finished before checking it out in various
> >> browsers is a mistake.
> >>
> >>
> >> Except for a few exceptions, the only html tag attributes you should be
> >> seeing in your generated page are id , name and class.
> >> Remove all of the inline styles.
> >> Remove proprietary attributes.
> >> Empty your stylesheet and start styling from scratch using only the
> >> stylesheet ( no inline styles ) - one style element at a time making sure
> >> that each facet of your styling works acceptably in all target browsers
> >> before moving on to the next element.
> >>
> >> Of course you can go old-school and revert to a table based layout which
> >> will immediately take care most of your styling issues ~100%
> >> cross-browser.
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in
> >> message
> >> news:D4AFF560-FB4D-4BB2-A283-A489C02D2C83@microsoft.com...
> >> > Most of my webpages use tables for positioning. They simply look ugly
> >> > in
> >> > Safari amd Firefox. i.e. https://www.insuranceservicec...
> >> > I have seen tables that look nice in Safari, Firefox amd IE.
> >> > I don't know why tables sometimes work fine across browsers and
> >> > sometimes
> >> > they do not.
> >> > Do you?
> >> > --
> >> > Arne Garvander
> >> > Certified Geek
> >> > Professional Data Dude
> >> >
> >> >
> >> > "gerry" wrote:
> >> >
> >> >> How do you figure that tables will 'always fail Firefox and Safari'
> >> >> ??????
> >> >> I am neither recommending nor discouraging it but tables are by far
> >> >> your
> >> >> quickest/safest bet for cross browser layout compatibility.
> >> >>
> >> >>
> >> >> "Arne Garvander" <ArneGarvander@discussions.microsoft.com> wrote in
> >> >> message
> >> >> news:4BA4BED5-8AD5-4214-B5B5-6FDA5A31C363@microsoft.com...
> >> >> >I have an aspx page that use absolute positioning.
> >> >> > Sometimes there is a 15 seconds delay from the time that the text of
> >> >> > the
> >> >> > page displayed until all bits and pieces are downloaded to the
> >> >> > browser.
> >> >> > Until
> >> >> > everthing is down loaded the CSS styles will not br applied and my
> >> >> > page
> >> >> > looks
> >> >> > very unprofessional for 15 seconds.
> >> >> > I two solutions in mind.
> >> >> > 1. Get rid of absolute positions and use tables for positions. The
> >> >> > display
> >> >> > will never fail in IE and always fail Firefox and Safari.
> >> >> > 2. I most use other features in CSS that I have not yet mastered to
> >> >> > make a
> >> >> > cross browser friendly page.
> >> >> > What do you think?
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Arne Garvander
> >> >> > Certified Geek
> >> >> > Professional Data Dude
> >> >>
> >> >>
> >> >>
> >>
> >>
> >>
>
>
>