Click here to Skip to main content
15,889,877 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow Do I Design This Simple (yet Responsive) Site...??? Pin
Member 1208020110-May-18 12:43
Member 1208020110-May-18 12:43 
AnswerRe: How Do I Design This Simple (yet Responsive) Site...??? Pin
Richard Deeming11-May-18 1:37
mveRichard Deeming11-May-18 1:37 
AnswerRe: How Do I Design This Simple (yet Responsive) Site...??? Pin
jkirkerx27-May-18 19:13
professionaljkirkerx27-May-18 19:13 
QuestionFixing a Broken Interceptor Pin
cjb1108-May-18 3:50
cjb1108-May-18 3:50 
QuestionHow to use $_SERVER['PHP_SELF'] to save record and print simultaneouly Pin
Member 136918611-May-18 21:16
Member 136918611-May-18 21:16 
AnswerRe: How to use $_SERVER['PHP_SELF'] to save record and print simultaneouly Pin
Richard MacCutchan1-May-18 22:01
mveRichard MacCutchan1-May-18 22:01 
QuestionHow to run Javascript queries in code (HTML) Pin
Member 1380375629-Apr-18 5:20
Member 1380375629-Apr-18 5:20 
AnswerRe: How to run Javascript queries in code (HTML) Pin
Richard Deeming30-Apr-18 1:12
mveRichard Deeming30-Apr-18 1:12 
Start by fixing the id attribute on the <div> - IDs cannot start with "=":
HTML
<div id="cont">

Then, it's simply a case of using the descendant or child selectors:
CSS
#cont ul
{
    /* Matches all <ul> tags in the <div> */
}
#cont > ul
{
    /* Matches only the <ul> tag which is an immediate child of the <div> */
}
#cont ul ul
{
    /* Matches the second (or third, or fourth, ...) level of <ul> tags in the <div> */
}
#cont > ul > li > ul
{
    /* Matches only the second level of <ul> tags in the <div> */
}

#cont li
{
    /* Matches all <li> tags in the <div> */
}
#cont > ul > li
{
    /* Only matches the first level of <li> tags in the <div> */
}
#cont li li
{
    /* Matches the second (or third, or fourth, ...) level of <li> tags in the <div> */
}
#cont > ul > li > ul > li
{
    /* Matches only the second level of <li> tags in the <div> */
}

If all else fails, use your browser's developer tools to inspect the elements to see what styles are applied.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionCodeIgniter-Search Pin
Jireh Capao24-Apr-18 19:03
Jireh Capao24-Apr-18 19:03 
QuestionRe-code to get rid of Absolute Positioning? Pin
Member 1208020114-Apr-18 8:16
Member 1208020114-Apr-18 8:16 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
Blikkies17-Apr-18 22:33
professionalBlikkies17-Apr-18 22:33 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
Richard Deeming19-Apr-18 2:20
mveRichard Deeming19-Apr-18 2:20 
AnswerRe: Re-code to get rid of Absolute Positioning? Pin
W Balboos, GHB4-May-18 7:05
W Balboos, GHB4-May-18 7:05 
QuestionSaving data submitted online as pdf Pin
Deekkris13-Apr-18 9:23
Deekkris13-Apr-18 9:23 
AnswerRe: Saving data submitted online as pdf Pin
David Mujica17-Apr-18 3:20
David Mujica17-Apr-18 3:20 
QuestionNeed to Link to an Image on another Page already containing multiple images Pin
Member 1208020110-Apr-18 8:03
Member 1208020110-Apr-18 8:03 
AnswerRe: Need to Link to an Image on another Page already containing multiple images Pin
Richard Deeming19-Apr-18 2:07
mveRichard Deeming19-Apr-18 2:07 
QuestionRe: Need to Link to an Image on another Page already containing multiple images Pin
Sarcastic CA20-Apr-18 7:56
professionalSarcastic CA20-Apr-18 7:56 
QuestionUsing DOM with Selector Values, Assignment Pin
Member 137687478-Apr-18 9:10
Member 137687478-Apr-18 9:10 
QuestionHow to perform addition from LineTotal to subtotal using HTML JavaScript Pin
Nikhil Dange21-Mar-18 3:24
Nikhil Dange21-Mar-18 3:24 
SuggestionQuestion about crud operations Pin
Maniteja Attili20-Mar-18 10:25
Maniteja Attili20-Mar-18 10:25 
QuestionRe: Question about crud operations Pin
Richard MacCutchan20-Mar-18 12:25
mveRichard MacCutchan20-Mar-18 12:25 
AnswerRe: Question about crud operations Pin
Maniteja Attili21-Mar-18 3:34
Maniteja Attili21-Mar-18 3:34 
GeneralRe: Question about crud operations Pin
Richard MacCutchan21-Mar-18 4:08
mveRichard MacCutchan21-Mar-18 4:08 
GeneralTemplates with just HTML/CSS (without a back-end) Pin
Ritwesh6-Mar-18 19:55
Ritwesh6-Mar-18 19:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.