Dreamweaver problems?
Asked by
Trillian (
21153)
January 31st, 2010
I had to put together a web site for a class. It’s over and done with, so it really doesn’t matter at this point, however… I can NOT get my text to wrap. I did everything I could think of, including trying to code it in the code view. I suck at coding; I’m a writer, not a programmer. So it doesn’t matter now except that I’m a bit OCD and knowing that the text could look better if I could only get it to wrap where I have images nags at me. I still have the site up because I’m proud of myself to have done it and because, I really don’t have another reason. It’s got many flaws and probably sucks on toast to a regular programmer, but what the heck? Can anyone give me a suggestion or anything?
Observing members:
0
Composing members:
0
5 Answers
Ideally you will use CSS to align your image as you choose. There is a depreciated image tag though that you could probably use if you are not using CSS. Info about it is here:
http://w3schools.com/tags/tag_img.asp
Are you using tables for formatting?
@Jeruba no. And I did NOT do well with tables though I had to use one as part of the overall project. I used CSS in the classic and designer modes. The book and cd were really good follow alongss, thank god. But every time I added an image I should have gotten the option to select a “class” which I could then have chosen fltrt or fltlt. But it never happened. My instructor straight up wouldn’t help me. I found out when the class started that I should have had a pre req class. I panicked to my academic advisor. She felt that since I was an honor student, I would be ok. I wasn’t. iIgot a freakin’ C.
Hate, hate, hate.
Your text would need some sort of container with a set width, then it would wrap to that width.
So for example, in dreamweaver you can insert a div, give it an id of “wrapper” and then using the CSS tools there set the width: property to either a number of pixel, or a percent of the whole. You’ll then want to put your text inside that div. If you’d like that to center in the available space, set the margin property to “0 auto” (which sets the top and bottom margins to 0, then the right and left margins to “auto” which centers it)
You can create divs within that first one of different sizes for various purposes.
You can also force text to go to a new line by inserting a break in there (a <br /> tag) although this is less flexible than simply letting it wrap automatically to the container.
Do you have a link? It may help explain things a bit.
P.S. – the img tag is most definitely not deprecated and is the preferred way to insert images in most cases.
@funkdaddy the image tag is not depreciated but the align attribute for it is. I apologize if that was unclear to you.
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.