16 replies [Last post]
blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

I can't do frames in HTML first off, so don't suggest that....

OK, I have an Actionscript/Flash menu to the right of my page. Now, I want text to the left of it, but it always seems to screw up, either appearing above or below the menu.

Any help?

Thanks,

BP



kigoobe
kigoobe's picture
Offline
Regular
Paris
Last seen: 12 years 25 weeks ago
Paris
Timezone: GMT+2
Joined: 2007-06-27
Posts: 14
Points: 0

Make two divs, with first

Make two divs, with first one, add style float:left

Put your content of left on the first div, and your flash in the second div. This should work.

But beware, you should replace the flash menu with a CSS menu. Flash menus are not spidered, hence your pages will be no where in google. Else, you add a site map.

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

I started learning CSS about

I started learning CSS about an hour ago lol. But I sorta understand the float technique, may take me a while to figure out though,
I think I still prefer ActionScript over CSS Laughing out loud

Thanks,
BP

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

Scratch that last part, I

Scratch that last part, I have no idea....

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 30 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

Moved from Off Topic because

Moved from Off Topic because this is a CSS-related question.

We need to see more of your code; the HTML is not enough. A link to the page is best, otherwise all the HTML & CSS for the page in question.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

Actually, I've got the float

Actually, I've got the float working for the menu. Just not the text, some of it seems to be overlapping the menu, if no-one can help from there, I'll post my whole code.

BP

script { float: left }

object
{
float: left
}

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

I've worked around it by

I've worked around it by using html tags and modifying the tag with CSS. Probably not the best way to do it, but it works Smile

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 8 weeks 8 hours ago
Joined: 2004-06-30
Posts: 9674
Points: 810

Code

Could you show us all your HTML and CSS?

Then we can advise if there's a better way to do it.

Verschwindende wrote:
  • CSS doesn't make pies

kigoobe
kigoobe's picture
Offline
Regular
Paris
Last seen: 12 years 25 weeks ago
Paris
Timezone: GMT+2
Joined: 2007-06-27
Posts: 14
Points: 0

One way of doing could be,

blueparukia wrote:
I started learning CSS about an hour ago lol.

One way of doing could be, if you are new like me ...

1. Make a folder in your public_html/ directory, name it css
2. Now create a new file and type this there

.leftalign {
float: left;
}

3. Save it with an extension css, say home.css, and upload this in your css folder.
4. Open your html page, and type somewhere before the </head> tag

@import "http://www.yoursite.com/css/home.css";

5. Now, type this between <body> and </body>

This is the basic thing that you should do, if you are new to css, I thought to tell you. From here, if it doesn't work, people can help you out.

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

Thanks. For some reason I

Thanks. For some reason I have an aversion to putting CSS in my HTM document (I just use external sheets). That works though, thanks.

BP

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 30 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

blueparukia wrote:For some

blueparukia wrote:
For some reason I have an aversion to putting CSS in my HTM document (I just use external sheets).

And so you should. External stylesheets are the best method, but no-one has suggested using inline styles in this thread. :?

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

The poster above you told

The poster above you told me to put some in the body of my HTML

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 30 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

They told you to add classes

They told you to add classes to your HTML, not CSS.

Adding classes and IDs to your HTML is fine (as long as you don't go overboard). What's not encouraged is doing this:

That's inline CSS.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

Well, I ocassionally add

Well, I ocassionally add classes to my HTML. What I'm saying is I try to completely avoid putting CSS (or any language for that matter) into my HTML document. JavaScript and ActionScript when necessary, but no more.

BP

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 30 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

blueparukia wrote:What I'm

blueparukia wrote:
What I'm saying is I try to completely avoid putting CSS into my HTML document.

Classes and IDs are HTML; they're not CSS, they're just hooks to hang your CSS on to.

There's no sane reason to avoid using classes and IDs in your HTML altogether. The idea is to not use them when you don't have to, ie, if you can target an element directly without reference to a class or ID, then do so, but it's impossible to style anything but the most basic pages without classes or IDs.

The use of classes is also what microformats is all about - so you're not just providing styling hooks, but also adding semantic weight to your document.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

blueparukia
Offline
Enthusiast
Australia
Last seen: 13 years 35 weeks ago
Australia
Timezone: GMT+10
Joined: 2007-06-27
Posts: 63
Points: 0

Exactly what I'm saying. I

Exactly what I'm saying. I only use it when necessary.

I'm not to clear on what IDs are though...

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 6 years 30 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

IDs can only be used once

IDs can only be used once per page. Classes can be assigned to multiple elements.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference