|
|
|
|
Thread Tools | Display Modes |
02-27-2005, 11:48 PM | #1 |
Scooby Specialist
Member#: 7823
Join Date: Jun 2001
Location: Wisconsin
Vehicle:2003 WRX Sedona Red Pearl |
html css help image borders
hey, i've searched but can't seem to figure out what's going on or if it's supposed to work like this?
i have a css file that i'm referencing for a web gallery that i'm creating. in the css file, i've got: img { border-width: 5px;} in my shtml file where i have the images in a table, if i use <img src=".." border="2"> then i see the border and in the css file i can change it's color or size etc... but if my shtml file does NOT have the border="x" in the <img> tag i see no borders or color. what am i doing wrong? i'd like to be able to specify a border size for all the images within the css file. thanks!
* Registered users of the site do not see these ads.
|
02-28-2005, 01:21 AM | #2 | |
Scooby Newbie
Member#: 28488
Join Date: Nov 2002
Chapter/Region:
MWSOC
Location: Champaign, Il.
Vehicle:2000 Pierce Saber Fire Engine Red |
Quote:
interesting, are you sure you're properly linking to the css file? I understand that the CSS is loaded from top to bottom and then the HTML code in the body has the final trump. but if you don't have a border="x" in the html then the css should carry over. <---mildly confused. Flip through an online CSS manual to see if anything turns up |
|
02-28-2005, 01:25 AM | #3 |
Scooby Guru
Member#: 2973
Join Date: Nov 2000
Chapter/Region:
MWSOC
Location: Inverness, IL
Vehicle:2018 Camaro ZL1 1LE Red |
You might just be dealing with poor layout rendering in certain browsers. IE can be inconsistant many times and firefox sometimes flat out refuses to render a page as you imagine it would.
|
02-28-2005, 09:47 AM | #4 |
Scooby Specialist
Member#: 7823
Join Date: Jun 2001
Location: Wisconsin
Vehicle:2003 WRX Sedona Red Pearl |
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
i wonder if this declaration is doing something to it? i'm naming my file shtml instead of html so i can use an include statement to pull in a navigation bar that will be the same on every page i've got. i think a couple weeks ago, i forgot to change the type of file to transitional and my linked css suddenly stopped working. i'll have to do more searching and testing. thanks |
02-28-2005, 10:03 AM | #5 | ||
Scooby Newbie
Member#: 62991
Join Date: May 2004
Location: Northern Virginia
|
is it
Quote:
Quote:
|
||
02-28-2005, 10:28 AM | #6 |
Scooby Specialist
Member#: 14259
Join Date: Jan 2002
Chapter/Region:
NESIC
Location: Shrewsbury, MA
Vehicle:OT, we're a-holes b/c we are bored at work |
^^^^ He'd need img not .img because .img means he would be calling the class. just saying img means he wants it to impact all img tagged items.
|
02-28-2005, 10:33 AM | #7 | |
Scooby Newbie
Member#: 62991
Join Date: May 2004
Location: Northern Virginia
|
oh that's right, i was thinking of the kung-fu combo style of
Quote:
/confusion |
|
02-28-2005, 07:57 PM | #8 |
Scooby Specialist
Member#: 7823
Join Date: Jun 2001
Location: Wisconsin
Vehicle:2003 WRX Sedona Red Pearl |
right - don't want to create a class. though i might try that tonight. anyway, maybe a better question is this: is there any other way to use include to include a navigation file besides using SHTML?
for example, i want to use: <!--#include file="nav_bar.html" --> at the top of all my pages. however, i found out that you sometimes have to use shtml as a file extension in order to get it to work (i tried html and no go). |
02-28-2005, 07:59 PM | #9 |
Scooby Guru
Member#: 3781
Join Date: Jan 2001
Vehicle:2023 Ioniq6 Green |
<img src="blah" width="100" height="100" alt="blah" style="border: solid 2px #252121;"/>
|
02-28-2005, 08:02 PM | #10 |
Scooby Specialist
Member#: 7823
Join Date: Jun 2001
Location: Wisconsin
Vehicle:2003 WRX Sedona Red Pearl |
ah, forget my last post. instead of actually replying to THIS thread, i replied to something i was THINKING. i make for interesting conversation!
|
02-28-2005, 08:04 PM | #11 | |
Scooby Specialist
Member#: 7823
Join Date: Jun 2001
Location: Wisconsin
Vehicle:2003 WRX Sedona Red Pearl |
Quote:
yeah inline works AOk. drat more typing. |
|
02-28-2005, 08:06 PM | #12 |
Scooby Guru
Member#: 3781
Join Date: Jan 2001
Vehicle:2023 Ioniq6 Green |
Just make a class then...
.imgborder { border: solid 2px #252121; } Then <img src="blah" width="100" height="100" alt="blah" class="imgborder"/> |
03-01-2005, 09:34 AM | #13 |
Scooby Specialist
Member#: 7823
Join Date: Jun 2001
Location: Wisconsin
Vehicle:2003 WRX Sedona Red Pearl |
class works fine too. so whatever, i'll have to do inline or class. thanks for the help.
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML/CSS Help | Acejam2k | Off-Topic | 6 | 01-15-2008 07:31 PM |
HTML email help... | Honkey3k | Off-Topic | 2 | 04-05-2006 05:18 PM |
HTML Frames Help? | roffle | Off-Topic | 61 | 05-17-2005 12:49 PM |
HTML guru's: Help! | eurojax | Off-Topic | 1 | 08-05-2004 06:09 AM |
HTML Guru's: HELP! | Remy E. LeBeau | Off-Topic | 19 | 06-20-2003 03:22 PM |