SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Mar 2002
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    newbie: formatting frameset with CSS?

    hi,

    it's a simple question i guess.
    i have a lot of sites on my webpage which are using frames. i now want to set the border, frameborder, marginheight, marginwidth etc... to '0' for all sites.
    can i do this with css and how?

    all help is appreciated...

    cya
    jen

  2. #2
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean by "a lot of sites on my webpage"? Sites that you link to externally? Sorry, but I don't really follow.

    As to defining your frames with CSS, I can find no selector to do such a thing - even searched the help files in TopStyle (CSS editing sofware) and came up with nothing. Sorry.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  3. #3
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jennifer, I noticed that you posted this question twice. I have removed the duplicate from the CSS forum and moved this one across from the Web Page Design forum.

    There is no need to cross post in these forums as topics can be moved to a more appropriate forum if need be.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Jennifer...

    You can indeed do this with CSS:

    body { margin: 0px; }

    Simply put this into a file named styles.css (the .css is the important part)

    Put this line into any page that you want to have no margins:

    <link rel="stylesheet" href="styles.css" type="text/css">

    Just make sure the path to styles.css is set properly and you'll be good to go.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    Bimbo With A Brain! silver trophy Saz's Avatar
    Join Date
    Mar 2001
    Location
    Kent, United Kingdom
    Posts
    5,275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That'll set the margins of all the pages that are called into the frames to "0", but it won't get rid of the frame borders surely?

    I've been looking for something in CSS that would replace
    Code:
    <FRAMESET rows="75,*" FRAMESPACING="0" FRAMEBORDER="0" BORDER="0">
    but I've had no luck.
    Saz: Naturally Blonde, Naturally Dizzy!
    No longer Editor of the Community Crier.

    Don't mind me, I'm having a BLONDE moment!

  6. #6
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FRAMES are deprecated in newer versions of HTML and xHTML so it's unlikely they would bother allowing the user to style them.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •