Forum Moderators: not2easy

Message Too Old, No Replies

Changing size

Changing size of on screen items

         

Adam5000

5:16 pm on Jun 24, 2007 (gmt 0)

10+ Year Member



I know this looks like javascript and it is. But I think this is a style thing. The code below works fine, and if it's not a big issue, I'd like to make it a little bigger on the screen. And the output must stay generated (as in the example below) with javascript, as opposed to the <p> </p> thing. Help!

<html>
<head>
<title>Color</title>
</head>
<body>
<script type="text/javascript">
document.write("Hello to all those good people at Webmaster World.")
</script>
</body>
</html>

londrum

5:45 pm on Jun 24, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



you can still put a <p> tag around it if you want. it won't affect the javascript.
or put a <span> tag around it or something. then you will be able to style it with css. -- just be careful that you don't double-up on the quote marks.
something like this:

<script type="text/javascript">
document.write('<span class="blah">Hello to all those good people at Webmaster World</span>.')
</script>

and in the CSS:


.blah { font-size: 150%; }

Adam5000

2:32 pm on Jun 26, 2007 (gmt 0)

10+ Year Member



That works good Londrum. You're teriffic.