Jump to content

Few Questions


leo345

Recommended Posts

I'm a beginner. Can anyone help me to define the followings? Please explain to me in details. Many thanks!

 

1) Identify the different parts of the style: selector, declaration, class, context where the style is used.

 

table td .content {

font-size:13px;

padding: 10px 5px 5px 20px;

background-color:#FBF0FA;

}

 

2) Based on the given code, describe how rectangle.gif will be positioned within the Web page.

 

<img src="rectangle.gif"

style="position:absolute;left:120px;top:80px;z-index:2;”>

<img src=”square.gif”

style="position:absolute;left:120px;top:100px;z-index:1;”>

 

The image rectangle.gif has a height of 150 pixels and width of 100 pixels, and each side of square.gif has a length of 75 pixels.

 

3) Based on the given code, describe how the text “Winner of the 2013 Web Design Award” will

be displayed within the web page.

 

<div id="title1"

style=”position:absolute;left:100px;top:1.5em;font-size:18pt;”>The

Joy of Web Design

<SPAN style="position:relative; left: 25px; top:

3em;font-size:14pt;">Winner of the 2013 Web Design Award</SPAN>

</div>

Link to comment
Share on other sites

I agree with Andrea, looks like homework. My advice if this is homework first google css and put what you are looking for with it like (what is the declaration of css code) or something like that. For questions 2 and 3 I would put the code in a code editor and see what happens. If you want to and I would because I am kinda of a smartbutt, I would point out to the instructor that the code (font-size:18pt) is wrong. It should be % or em or px the pt is points and is used for print not the web.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...