Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > html question

html question
Thread Tools
Forum Regular
Join Date: Sep 2000
Location: da 'nati
Status: Offline
Reply With Quote
Jan 6, 2002, 10:46 PM
 
i have to build a web site for a ficticious company for homework. here is my page. i know its ugly so far, but i can fix those probs on my own. anyway, i was wondering how i could get a rounded corner where the blue space meets the white space beneath the "security systems" logo. i dont know how to write the code so the corner is in the exact location that i want it to be. Your response is appreciated.
-=P-Lo=-

AMDG
http://www.cnnpromos.com/supercrew/feature.htm
     
Fresh-Faced Recruit
Join Date: May 2001
Location: Wilmington, DE, US
Status: Offline
Reply With Quote
Jan 7, 2002, 02:15 AM
 
as far as i know... your best bet is to lay it out in a table and create a image for the corner
     
Mac Elite
Join Date: Mar 2001
Status: Offline
Reply With Quote
Jan 8, 2002, 06:11 PM
 
There is a good tutorial on building tables with rounded corners (and other effects around the perhipery).

Basically here's how you do it:
1. Draw a box with rounded corners in Fireworks (or whatever)
2. Slice the box so that the corners are slices. All these should be the same pixel dimensions.
3. Make a east, west slice that is the same width as the corner (height doesn't matter because it's going to overlap anyway).
4. Make the north and south slices the same height as the corner (same argument with the width as #3).
Export the 8 images (4 corners, 4 other slices).

Make a 3x3 table with these attributes:
-100% width (for now)
-cellpadding=0
-cellspacing=0
-border=1 (for now)

NOT PUTTING THE ATTRIBUTE IN YOUR CODE IS DIFFERENT THAN SPECIFYING ZERO.

In the northwest, northeast, southwest, southeast tables, insert the IMAGE of the corner in the cell.

In the north, south, east and west, make the BACGROUND of that cell the appropriate image.

Make the center cell (content) 100% width.

Get rid of the 100% width (remove the width tag or set it to 760 - see below) for the table, get rid of the border (set it =0). Type content in your center cell and voila.

GET RID OF ALL   's your program has put in the cells.

Now your corner images are holding the TD's open so that the background of the north, south, east, west's TD's are showing through

Note that different browsers render a 100% cell width differently so you might want to use a transparent gif to say, hold your center cell at 760 pixels wide (my own calculated maximum innerwidth of a browser maximized on a 800x600 screen).

After you get the hang of it, you can start experimenting with stuff other than rounded corners and go crazy. I'm not an artist so I can't go crazy. But you can.

If you need more help then ask. I'm sure I could draw a very cheesy tutorial.

-Raman
     
pml589  (op)
Forum Regular
Join Date: Sep 2000
Location: da 'nati
Status: Offline
Reply With Quote
Jan 8, 2002, 07:38 PM
 
whoa... didnt expect anyone to type out a whole tutorial for me. i appreciate it. thanx for all the help.
-=P-Lo=-

AMDG
http://www.cnnpromos.com/supercrew/feature.htm
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 12:45 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2