This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > July 2005 > aligning to the far left





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author aligning to the far left
Follow_Bjork

2005-07-16, 7:22 pm

I have a picture on my site that I want to to align to the left, but not just
the left, I mean the far left so you dont see a little space before it at the
end of the page. Does anyone know what im talking about? I want it to go to the
very end of the page with no spaces. Can someone tell me how to do that?

sawtooth

2005-07-16, 7:22 pm

Set your body and html margins to zero via CSS.

As an aside, don't call me 'truly sick' if I don't sign a poorly written,
atrociously punctuated document such as is posted at the link. If you're going
to actually deliver such a petition, its impact would be greater if it were
properly written. As it is, you will only acheive the electronic equivalent of
a wadded-up trashcan toss and the mental derision of the recipient.

Murray *TMM*

2005-07-16, 7:22 pm

Link to an external stylesheet (using DW's CSS editor), or embed a
stylesheet in your code (between <head> and </head> ) with the following
style in it (embedded shown for cut-n-paste convenience) (assuming you want
zero margins) -

<style type="text/css">
<!--
body { margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0;
padding:0; }
-->
</style>
(when the value is zero, units are not required)

you could also try

body { margin: 0 0 0 0; padding:0; }

or

body { margin: 0; padding:0; }

as a shorthand method.

This will take care of the margins in IE4+ and NN6. To take care of NN4x,
you will need to use MODIFY | Page Properties... and set the two right hand
margin fields (marginwidth and marginheight) to 0 (only in DMX and below).

Since you are still using inline margin specs in the body tag, this method
won't validate (and is not easy to do in DMX2004). To get completely valid
code that works for all
browsers in any version of DW, change your stylesheet as shown below -

body {
padding: 0;
margin: 0 -10px 0 -10px;
/*/*/margin: 0 0 0 0; /* */
}
(this is called a CSS "hack" - the bottom line is not read by NN4x)


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Follow_Bjork" <webforumsuser@macromedia.com> wrote in message
news:dbblg4$ktu$1@forums.macromedia.com...
>I have a picture on my site that I want to to align to the left, but not
>just
> the left, I mean the far left so you dont see a little space before it at
> the
> end of the page. Does anyone know what im talking about? I want it to go
> to the
> very end of the page with no spaces. Can someone tell me how to do that?
>



Murray *TMM*

2005-07-16, 7:22 pm

Huh?

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"sawtooth" <webforumsuser@macromedia.com> wrote in message
news:dbbms5$mik$1@forums.macromedia.com...
> Set your body and html margins to zero via CSS.
>
> As an aside, don't call me 'truly sick' if I don't sign a poorly written,
> atrociously punctuated document such as is posted at the link. If you're
> going
> to actually deliver such a petition, its impact would be greater if it
> were
> properly written. As it is, you will only acheive the electronic
> equivalent of
> a wadded-up trashcan toss and the mental derision of the recipient.
>



Follow_Bjork

2005-07-16, 7:22 pm

Thankyou so much Murray for the help :)
Murray *TMM*

2005-07-16, 11:16 pm

You're welcome!

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"Follow_Bjork" <webforumsuser@macromedia.com> wrote in message
news:dbboro$ore$1@forums.macromedia.com...
> Thankyou so much Murray for the help :)



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews