CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 10th, 2013, 04:33 PM
Franksplace2 Franksplace2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 Franksplace2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 20 sec
Reputation Power: 0
Newby - 2 Qs - tag & box

Q1

The header has two images (left & right) and two lines of text (h1 & h3). The left image tag says

<body.twoColFixLtHdr><div#container><div#header><p><img.fltlft> and the right is similar.

What is that <p> doing in there? I know <p> means paragraph text but the image ought to be in <div#header> not under <p>.

Q2 I had a tough time positioning the images vertically. They showed up above or half out below. Is the box model looking to position the images? How do I set border and padding to zero?



Thanks for your help

Frank

Reply With Quote
  #2  
Old February 10th, 2013, 05:06 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
#1
This must be some sort of abbreviated code, probably interpreted by some script.

for instance
Code:
<div#container>

should be
Code:
<div id="container">

What the <p> is doing there, I have no idea. except that it's missing an endtag. Maybe its (mis)used for layout purposes

Where did you get this code from?

#2
Second the boxmodel doesn't do anything with positioning. Its pretty much deals with the dimensional layers of 1 object.
object+padding+border+margin (google images of the boxmodel)

To position images vertically without seeying the case I would say have a look in the properties Float and Clear (or use an unordered list (<ul>).

#3 (answer to third question)
Code:
selector{padding:0;margin:0;}
__________________
PHP Tutorial

Reply With Quote
  #3  
Old February 12th, 2013, 02:20 PM
Franksplace2 Franksplace2 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 2 Franksplace2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 30 m 20 sec
Reputation Power: 0
Aeternus,

Thank you for your help.

Quote:
Originally Posted by aeternus
#1
This must be some sort of abbreviated code, probably interpreted by some script.

for instance
Code:
<div#container>

should be
Code:
<div id="container">

What the <p> is doing there, I have no idea. except that it's missing an endtag. Maybe its (mis)used for layout purposes

Where did you get this code from?

I use Dreamweaver to create the code. I could not delete the <p>

#2
Second the boxmodel doesn't do anything with positioning. Its pretty much deals with the dimensional layers of 1 object.
object+padding+border+margin (google images of the boxmodel)

I set up the header with text only. object + padding +border Then I try to insert the image which is bigger than the object+padding+margin. So either the image can't fit or the object gets bigger. The images are stuck to the top edge of Header. Could that be the cause of my problems?

To position images vertically without seeying the case I would say have a look in the properties Float and Clear (or use an unordered list (<ul>).

I am using float. What does Clear do?


#3 (answer to third question)
Code:
selector{padding:0;margin:0;}


I will try to do that using Dreamweaver.

Reply With Quote
  #4  
Old February 12th, 2013, 02:43 PM
aeternus's Avatar
aeternus aeternus is offline
For POny!
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: Amsterdam
Posts: 416 aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level)aeternus User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 5 Days 4 h 56 m 43 sec
Reputation Power: 114
If dreamweaver produces this:
Code:
<body.twoColFixLtHdr><div#container><div#header><p><img.fltlft>
and that is also outputed to the browser than that is wrong. It's invalid code , which as far as I see is used by a different program to interpret it and make it valid html.


As far as the property Clear. Did you try to google it?
I can tell that float and clear are like brother and sister, but it would be wise to google it and read about it, unless you like me to paste the w3c manual here.
Quote:
I set up the header with text only. object + padding +border Then I try to insert the image which is bigger than the object+padding+margin. So either the image can't fit or the object gets bigger. The images are stuck to the top edge of Header. Could that be the cause of my problems?


I would suggest you show us some valid html and css.
The basics look like this
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>

</body>

</html>

They all have a begin and endtag (unlike your code).

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Newby - 2 Qs - tag & box

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap