Solved

wrap instead of justify???

Posted on 1998-08-05
28
345 Views
Last Modified: 2009-12-16
Howdy,
I have this statement in all my .htmls:

BODY {font: 11pt "Arial";text-align: justify;margin-left: 15px;margin-right: 5px}
  H1 {font: 12pt "Arial" Helvetica; color: navy; font-weight: bold; }
  H2 {font: 14pt "Times Roman" ; color: black; font-weight: bold; }
 
  A:link {font: 11pt "Arial" Helvetica; color: blue; font-weight: bold; text-decoration: none}
  A:visited {font: 11pt "Arial" Helvetica; color: navy; font-weight: bold; text-decoration: none}

I hate that justifying. is there a wrap statement for the right align. I don't want any scroolbars.

Plus, i'd like to be able to click on a catagory in my left frame and have it open to a full window, with the back button option.

Thinking about hiring someone to write a good CSS so I can concentrate on the content of my site rather than fight html,

Please see:
http://www.geocities.com/~budallen/
and poke around.

Thanks,
bud
0
Comment
Question by:smeebud
  • 10
  • 9
  • 5
  • +1
28 Comments
 
LVL 1

Expert Comment

by:slinky
ID: 1845068
to open a new window you need to use the target option in the link i.e. <A HREF="myhtm.htm" target=_new>Link</A>
if you replace the _new with the name of a frame it will put the html in the frame, if you use _top or _parent it will splat the frameset and put the page in the whole browser area.

With regard to controlling text, you get most flexibility from putting all your text in a table, setting the relative % width of the table.
If you center the table you can add/control your margins, without specifying absolute pixel sizes etc

0
 
LVL 14

Author Comment

by:smeebud
ID: 1845069
If you go to my page slinky, perhaps you can tell me the statement to make a full screen when clicking on
for example "Setup and Re-install Windows 95 " In the top
"General" section.

Bud
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845070
For alignment of text, only:  left | right | center | justify are listed in the specification as possiblities.  If you use the normal left, you don't have to actually specify that, it's the default for the languages which are read left to right in CSS, and it should do all wrapping automatically.  If you are having a case in which it does not wrap, I'd like to see that (post the code?) so I could figure out what was going on.

If I understand what you are asking, I think you want the window frameset to be replaced by the new page (so that the new page takes the entire same window).  This is done by using this statement:
<A HREF="myhtm.htm" target="_top">Link</A> as slinky mentioned.

If however you wanted it to open up into a brand new window leaving the current page untouched in the original window, then use this:
<A HREF="myhtm.htm" target="_blank">Link</A>
using "_new" as slinky mentioned does not work correctly, but will actually open into a new window, just not with the functionality expected (it creates a new window named _new, so if you tried to open another window using the same method it would open it into that same window instead of a new window because _new would refer directly to that window.  _blank creates a brand new window every time).

Hope this helped!
-Josh

0
 
LVL 1

Expert Comment

by:slinky
ID: 1845071
Ooops...indeed _blank not _new...my memory ain't what it used to be...

smeebud. what you need to do is..

<BR><IMG SRC="pix/ball.gif" NOSAVE BORDER=0 HEIGHT=8 WIDTH=8><A target=_top       <-- add this here
HREF="Setup.html">Setup
and Re-install Windows 95</A>
0
 
LVL 1

Expert Comment

by:slinky
ID: 1845072
<BR><IMG SRC="pix/ball.gif" NOSAVE BORDER=0 HEIGHT=8 WIDTH=8><A target="_top"      <-- add this here
HREF="Setup.html">Setup
and Re-install Windows 95</A>

might need quotes!
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845073
I see you use a generator for coding slinky...  (the remaining NOSAVE, which is only meaningful to the generators -- I think that one is netscape composer?)  But yes, that is the way to do it as I mentioned in my answer!
:)
-Josh
0
 
LVL 14

Author Comment

by:smeebud
ID: 1845074
jbirk and slinky,
J, what more do you need to see, i'll happily provide it.   A whole .html??

Slinky the "<A HREF="95Tuneup.html" target="_top">Link</A>" or
<A HREF="95Tuneup.html" target="_top">Windows 95 Tune up; A must</A>  WORKS GREAT:::)))

"Windows 95 Tune up; A must" it's the only one I've changed so far." And it has the nice ALT+left arrow or back button to return. I like that.

jburk, I'll have to re-open this for now.
if need be, I'll make two seperate questions for you both to answer.
Have not messed with the wrap yet.

Please see, http://www.geocities.com/~budallen/
"Windows 95 Tune up; A must"
That's what I want, save for thwe wrap and font size.

Thanks both.

Bud
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845075
I looked at your page and noticed that you changed the left frame to not use text-align, and it seems to be working fine.

Is there is a problem with the way it looks?  I'm viewing it on the suggested 800 X 600, and I see:
"Windows 95 Tune up; A must"
just like that (it's not wrapped because it fits in one line).
Is that what you were looking for?

-Josh
0
 
LVL 14

Author Comment

by:smeebud
ID: 1845076
jbirk,
Well no,
When I didn't know how to make a full page and it was all confined to the reght frame, that's where i have the problem.

I have to do a lot of text juggeling to not have the words in the left frame messup. I need a wrap statement there too.

just tell me what you need.
I'll upgrade the points.
You guys are the only real help i've come across.
How about e-mailing me from my site.
I promise I won't bug you::)).
I get enough of that myself.

Bud

What the heck is NOSAVE. I've been asking all over about that.


Bud
0
 
LVL 12

Expert Comment

by:Otta
ID: 1845077
> What the heck is NOSAVE. I've been asking all over about that.

Most browsers "save" a downloaded image,
so that when you navigate to some other page,
and navigate "back" to this page,
the browser can used the "saved" copy of the image,
rather than fetching a "fresh" copy over the Internet.

0
 
LVL 1

Expert Comment

by:slinky
ID: 1845078
No, jbirk I don't use a generator (I pasted that from smeebud's page)...I use Emacs!
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845079
Wow!  You use Emacs!  A unix user.  How can you stand that program?  It drives me crazy...  I suppose there's not much choice with unix though.  Better than VI I suppose.

-Josh
0
 
LVL 14

Author Comment

by:smeebud
ID: 1845080
jbirk or slinky.
Well we seem to be working togeather here so how about one of you answering this, and I'll put up another just like it so the other can answer.
I know you both said you're not worried about the points, but allow me please to award you both.

BTW, thanks otto. The nosave then to me seems counter productive as far as load time go, correct??

Regards
Bud
0
 
LVL 8

Accepted Solution

by:
jbirk earned 200 total points
ID: 1845081
Yeah, thanks otto!  I never realized what NOSAVE was.  It just appeared occasionally when I used to use composer...

Thanks smeebud!  Did that style sheet I sent you work ok?
-josh
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Expert Comment

by:slinky
ID: 1845082
Well I was a UNIX user but predominantly PC based now.
Still WinEmacs is not too bad!
Sure thing smeebud, I'll await the follow-up question.

0
 
LVL 14

Author Comment

by:smeebud
ID: 1845083
Yep,
Check out the Buttons at http://www.webdev.net/orca/
and see how they show other sub-catagories.
I tried to steal that but i think they made it us-stealable:)

I'll write them.

Stay in touch
and thanks
Bud
0
 
LVL 14

Author Comment

by:smeebud
ID: 1845084
jbirk,

Was it you or slinky that was going to make me a demo???

Lost my e-mail addesses.

Bud
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845085
I think it was slinky, because I don't recall anything like that.  I had mentioned some stuff about style sheets and had said if you wanted more help on a specific thing which I had mentioned (don't remember what anymore), that I would help.
-Josh
0
 
LVL 12

Expert Comment

by:Otta
ID: 1845086
> The NOSAVE then to me seems counter productive
> as far as load time go, correct??

Yes, but it may be useful, if the image changes
(like a snapshot from a video-camera) each time
you "visit" a web-page.
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845087
It could also be useful for the developement stage of a web page so you don't have to worry about caching of images which are being changed or modified, etc.
-Josh
0
 
LVL 14

Author Comment

by:smeebud
ID: 1845088
Josh, was it you that offered a Demo for me??

If I tale NOSAVE OUT, does that mean that the images DO get saved or they DON't get saved??

Bud
0
 
LVL 12

Expert Comment

by:Otta
ID: 1845089
Images are saved, in the browser's "cache",
unless you specify 'NOSAVE' (under the assumption
that the specific browser does recognize the 'NOSAVE' option).

0
 
LVL 14

Author Comment

by:smeebud
ID: 1845090
Thanks Otta.

For people visting my site, it seems it would reduce load time when they come back, right.

is it safe to remove NOSAVE from all my .html files.

Please have a look at http://www.geocities.com/~budallen/
And tell me how it loads for you.

Bud
0
 
LVL 12

Expert Comment

by:Otta
ID: 1845091
> it seems it would reduce load time when they come back, right.

The use of 'NOSAVE' will *INCREASE* load-time,
because a "fresh" copy of the image must be fetched.

> is it safe to remove NOSAVE from all my .html files?

It depends -- how "dynamic" are your images?
If you have an image which is a "counter",
like an automobile odometer, then use 'NOSAVE'.
If you have an image which is a picture of a "mailbox",
then omit 'NOSAVE'.

0
 
LVL 14

Author Comment

by:smeebud
ID: 1845092
Thanks Otta

Bud
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845093
Everything loaded really quickly except for the right frame with the big image and the counter (the counter seemed to take a while for me).  Since the page is mostly text it loads nicely.  You probably don't need to worry about it.
-Josh
0
 
LVL 14

Author Comment

by:smeebud
ID: 1845094
Thanks Josh,
Now I forget.
Was it you that was going to build me a demo, as we talked about and easier design for people to find things??

Bud
0
 
LVL 8

Expert Comment

by:jbirk
ID: 1845095
I thought I had responded to this question but it didn't show up above??  Some network error I guess.  Oh well.
I can't recall that I had offered that.  I had said I would help further with your style sheets or look into including them, but I can't recall anything about a demo.  It must have been slinky.

-Josh
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now