FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

<div> and <marquee> properties

 


giovle
Hi,

does someone know if you can do the following:

On my website I want a marquee to appear. It should be surrounded by a box (to emphasise it). Then that box should be aligned to the right (so the right hand side should stick to the right margin). It should be 200px wide and 200px high with a top margin of 50px and right-margin of 50px.

I hope that I made it clear enough, otherwise just ask ...

Thx!!!
AftershockVibe
Look in to using CSS. Although any marquee which is a 250px square is going to look weird.

Yes you can do it. The box is most easily done by specifying a border for the <div> which you put your marquee into.

The right alignment thing can probably done by using float:right; on the marquee element.

You margins can either be specified on the marquee element itself using right-margin: 50px (or similar) or alternatively you can just use padding: 50px; on the <div>, I'm not sure if the float property will respect that but if it does it will save you adding margins to any other elements you might want to put in the <div> as well.
giovle
AftershockVibe wrote:
Look in to using CSS. Although any marquee which is a 250px square is going to look weird.

Yes you can do it. The box is most easily done by specifying a border for the <div> which you put your marquee into.

The right alignment thing can probably done by using float:right; on the marquee element.

You margins can either be specified on the marquee element itself using right-margin: 50px (or similar) or alternatively you can just use padding: 50px; on the <div>, I'm not sure if the float property will respect that but if it does it will save you adding margins to any other elements you might want to put in the <div> as well.


Thx! that worked, it's a marquee that scrolls up, so that'll work out just fine ... by the way, do you know of any good sites where I can find such help??? Thx
Fuzzy-Duck
AftershockVibe wrote:
do you know of any good sites where I can find such help??? Thx


Try www.positioniseverything.net or something like www.alistapart.com for starters. Both have lots of articles about CSS and web design in general, they're just plucked off my favourites list.

Another site I reference quite a lot, even if I don't agree 100% with all his opinions hehe, is www.christianmontoya.com. Slightly more involved than the above...

Oh, and google google google whenever you're stuck! There are 1,001 articles and help sites out there, and as long as you're clever with your search terms (use the css/html property/tag names, use double quotes to contain specific phrases) you'll find the help you need in no time Smile

Hope this helps,

Cheers,
fuzzy
AftershockVibe
Fuzzy-Duck wrote:
AftershockVibe wrote:
do you know of any good sites where I can find such help??? Thx


Uh, no I didn't Wink

For general reference I find the W3Schools CSS reference sheet good for quickly looking things up:
http://www.w3schools.com/css/css_reference.asp
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.