Jump to content

Recommended Posts

Posted

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>

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...