HighDots Forums  

salutations and css alignment

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss salutations and css alignment in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ian
 
Posts: n/a

Default salutations and css alignment - 01-01-2006 , 05:08 AM






Hi

Happy New year to you All!

As suggested I have now been through my code at

http://www.kevinrowley.co.uk/

One last problem is that in firefox the button is left justified but in IE
it's perfectly centralised. I'e adjusted all the margins and pading etc but
it's remains stationary

Any ideas?

thanks

Ian



Reply With Quote
  #2  
Old   
Osgood
 
Posts: n/a

Default Re: salutations and css alignment - 01-01-2006 , 05:46 AM






Ian wrote:

Quote:
http://www.kevinrowley.co.uk/

One last problem is that in firefox the button is left justified but in IE
it's perfectly centralised. I'e adjusted all the margins and pading etc but
it's remains stationary

Any ideas?
Change css to as below.

#button {
text-align: center;
}



Reply With Quote
  #3  
Old   
Ian
 
Posts: n/a

Default Re: salutations and css alignment - 01-01-2006 , 06:07 AM



Hi

Thanks for the suggestion but regretably that has not worked either

Regards

Ian
"Osgood" <notavailable (AT) atthisaddress (DOT) com> wrote

Quote:
Ian wrote:

http://www.kevinrowley.co.uk/

One last problem is that in firefox the button is left justified but in
IE it's perfectly centralised. I'e adjusted all the margins and pading
etc but it's remains stationary

Any ideas?

Change css to as below.

#button {
text-align: center;
}




Reply With Quote
  #4  
Old   
jojo
 
Posts: n/a

Default Re: salutations and css alignment - 01-01-2006 , 06:16 AM



Adding padding to the left will move the button in Firefox, you have the
#button selector defined twice in your style sheet.

#button {
text-align: center;
padding-left: 200px;
}

It would be better if you give that scripted button an id of it's own
instead of targeting the container, is that possible with this system?
It looks a little archaic, as it is no one coming to your store with js
turned off will see your button.

--
Cheers jojo
Team Macromedia Member Volunteer for Dreamweaver 8
http://www.webade.co.uk
http://www.cmsforbusiness.co.uk
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------

Reply With Quote
  #5  
Old   
Osgood
 
Posts: n/a

Default Re: salutations and css alignment - 01-01-2006 , 06:22 AM



Ian wrote:

Quote:
Hi

Thanks for the suggestion but regretably that has not worked either
Humm I can't understand why that should'nt work unless it has something
to do with the javascript which is calling that image into the cell.

It works for me without the script stuff being there. If I simpley
insert an image, its is centered. That all your really doing unless as I
say the script is placing it to the left. Why the script anyway?






Reply With Quote
  #6  
Old   
John Waller
 
Posts: n/a

Default Re: salutations and css alignment - 01-01-2006 , 06:27 AM



Is there any reason for using a Xara menu, Javascript-driven single button?

Would a CSS button with rollover on hover, the "visit_our_b1.gif" without
the JS, or even a simple text link do the same job?

As jojo says, if JS is disabled, a browser will not display the button at
all.

--
Regards

John Waller



Reply With Quote
  #7  
Old   
Ian
 
Posts: n/a

Default Re: salutations and css alignment - 01-01-2006 , 07:39 AM



Yes there was a reason, which I did not think through- silly me.

The graphic seemed appropriate and I never thought of just using the gif
file with a roll over.

cheers

Ian

"John Waller" <johnw (AT) REMOVETHISpinnacleweb (DOT) com.au> wrote

Quote:
Is there any reason for using a Xara menu, Javascript-driven single
button?

Would a CSS button with rollover on hover, the "visit_our_b1.gif" without
the JS, or even a simple text link do the same job?

As jojo says, if JS is disabled, a browser will not display the button at
all.

--
Regards

John Waller




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.